2017-11-22 04:10:06 +00:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<TargetFramework>$(CliTargetFramework)</TargetFramework>
|
2017-12-07 21:23:27 +00:00
|
|
|
|
<RuntimeFrameworkVersion>$(MicrosoftNETCoreAppPackageVersion)</RuntimeFrameworkVersion>
|
2017-11-22 04:10:06 +00:00
|
|
|
|
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
|
|
|
|
<AssemblyOriginatorKeyFile>../../tools/Key.snk</AssemblyOriginatorKeyFile>
|
|
|
|
|
<SignAssembly>true</SignAssembly>
|
|
|
|
|
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
|
|
|
|
|
<AssetTargetFallback>$(AssetTargetFallback);dotnet5.4;portable-net451+win8</AssetTargetFallback>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ProjectReference Include="..\..\src\dotnet\dotnet.csproj" />
|
|
|
|
|
<ProjectReference Include="..\..\src\Microsoft.DotNet.Configurer\Microsoft.DotNet.Configurer.csproj" />
|
|
|
|
|
<ProjectReference Include="..\..\src\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.csproj" />
|
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.Tools.Tests.Utilities\Microsoft.DotNet.Tools.Tests.Utilities.csproj" />
|
2018-01-24 18:16:27 +00:00
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.Tools.Tests.ComponentMocks\Microsoft.DotNet.Tools.Tests.ComponentMocks.csproj" />
|
2017-11-22 04:10:06 +00:00
|
|
|
|
<ProjectReference Include="..\..\src\Microsoft.DotNet.Cli.Utils\Microsoft.DotNet.Cli.Utils.csproj" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
|
|
|
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
|
|
|
|
|
<PackageReference Include="FluentAssertions" Version="4.18.0" />
|
|
|
|
|
<PackageReference Include="Moq" Version="4.7.25" />
|
|
|
|
|
<PackageReference Include="xunit" Version="2.2.0" />
|
|
|
|
|
<PackageReference Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
2017-12-04 22:13:24 +00:00
|
|
|
|
<None Update="DotnetToolSettingsMissing.xml">
|
2017-11-22 04:10:06 +00:00
|
|
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
|
|
|
</None>
|
2017-12-04 22:13:24 +00:00
|
|
|
|
<None Update="DotnetToolSettingsMalformed.xml">
|
2017-11-22 04:10:06 +00:00
|
|
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
|
|
|
</None>
|
2017-12-04 22:13:24 +00:00
|
|
|
|
<None Update="DotnetToolSettingsGolden.xml">
|
2017-11-22 04:10:06 +00:00
|
|
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
|
|
|
</None>
|
|
|
|
|
|
|
|
|
|
<Compile Remove="SampleGlobalTool/**" />
|
|
|
|
|
<Content Remove="SampleGlobalTool/**" />
|
|
|
|
|
<EmbeddedResource Remove="SampleGlobalTool/**" />
|
|
|
|
|
<None Remove="SampleGlobalTool/**" />
|
|
|
|
|
</ItemGroup>
|
2018-01-20 01:15:34 +00:00
|
|
|
|
|
|
|
|
|
<UsingTask TaskName="DownloadFile" AssemblyFile="$(CLIBuildDll)" />
|
|
|
|
|
|
2017-11-22 04:10:06 +00:00
|
|
|
|
<Target Name="CreateNupkgFromSource" BeforeTargets="Build">
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<testAssetSourceRoot>$(BaseOutputPath)/TestAsset/SampleGlobalTool</testAssetSourceRoot>
|
|
|
|
|
</PropertyGroup>
|
2017-12-04 22:13:24 +00:00
|
|
|
|
<Copy SourceFiles="SampleGlobalTool/DotnetToolSettings.xml" DestinationFolder="$(testAssetSourceRoot)" />
|
2017-11-22 04:10:06 +00:00
|
|
|
|
<MSBuild BuildInParallel="False" Projects="SampleGlobalTool/consoledemo.csproj" Targets="Restore;Build;Publish" Properties="Configuration=Release;BaseOutputPath=$(testAssetSourceRoot)/bin/">
|
|
|
|
|
</MSBuild>
|
|
|
|
|
<MSBuild BuildInParallel="False" Projects="SampleGlobalTool/consoledemo.csproj" Targets="pack" Properties="Configuration=Release;NuspecFile=includepublish.nuspec;NuspecBasePath=$(testAssetSourceRoot);PackageOutputPath=$(OutputPath)/TestAssetLocalNugetFeed">
|
|
|
|
|
</MSBuild>
|
|
|
|
|
</Target>
|
|
|
|
|
</Project>
|