2016-12-20 21:29:45 +00:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2016-12-21 00:38:04 +00:00
|
|
|
|
|
2016-11-12 07:46:29 +00:00
|
|
|
|
<PropertyGroup>
|
2017-01-26 03:19:44 +00:00
|
|
|
|
<TargetFramework>$(CliTargetFramework)</TargetFramework>
|
|
|
|
|
<RuntimeFrameworkVersion>$(CLI_SharedFrameworkVersion)</RuntimeFrameworkVersion>
|
2016-11-12 07:46:29 +00:00
|
|
|
|
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
|
|
|
|
<AssemblyName>dotnet.Tests</AssemblyName>
|
|
|
|
|
<AssemblyOriginatorKeyFile>../../tools/Key.snk</AssemblyOriginatorKeyFile>
|
|
|
|
|
<SignAssembly>true</SignAssembly>
|
|
|
|
|
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
|
2017-06-14 07:27:26 +00:00
|
|
|
|
<AssetTargetFallback>$(AssetTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8</AssetTargetFallback>
|
2016-11-12 07:46:29 +00:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Content Include="..\..\TestAssets\TestProjects\AppWithToolDependency\**\*">
|
|
|
|
|
<Link>TestAssets/TestProjects/AppWithToolDependency/%(RecursiveDir)%(Filename)%(Extension)</Link>
|
|
|
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
|
|
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
|
|
|
</Content>
|
|
|
|
|
<Content Include="..\..\TestAssets\TestProjects\DependencyContextFromTool\**\*">
|
|
|
|
|
<Link>TestAssets/TestProjects/DependencyContextFromTool/%(RecursiveDir)%(Filename)%(Extension)</Link>
|
|
|
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
|
|
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
|
|
|
</Content>
|
|
|
|
|
</ItemGroup>
|
2017-08-11 15:37:31 +00:00
|
|
|
|
|
|
|
|
|
<Target Name="WriteExpectedVersion"
|
|
|
|
|
BeforeTargets="BeforeBuild"
|
|
|
|
|
DependsOnTargets="PrepareForBuild">
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<ExpectedVersionFileInIntermediateFolder>$(IntermediateOutputPath)ExpectedSdkVersion.txt</ExpectedVersionFileInIntermediateFolder>
|
|
|
|
|
|
|
|
|
|
<VersionFileContent>$(SdkVersion)</VersionFileContent>
|
|
|
|
|
<ExistingVersionFileContent Condition=" Exists('$(ExpectedVersionFileInIntermediateFolder)') ">
|
|
|
|
|
$([System.IO.File]::ReadAllText($(ExpectedVersionFileInIntermediateFolder)))
|
|
|
|
|
</ExistingVersionFileContent>
|
|
|
|
|
|
|
|
|
|
<ShouldOverwriteVersionFile>false</ShouldOverwriteVersionFile>
|
|
|
|
|
<ShouldOverwriteVersionFile
|
|
|
|
|
Condition=" '$(ExistingVersionFileContent.Trim())' != '$(VersionFileContent.Trim())' ">true</ShouldOverwriteVersionFile>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<WriteLinesToFile File="$(ExpectedVersionFileInIntermediateFolder)"
|
|
|
|
|
Lines="$(VersionFileContent)"
|
|
|
|
|
Condition=" '$(ShouldOverwriteVersionFile)' == 'true' "
|
|
|
|
|
Overwrite="true" />
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Content Include="$(ExpectedVersionFileInIntermediateFolder)" CopyToOutputDirectory="PreserveNewest" />
|
|
|
|
|
<FileWrites Include="$(ExpectedVersionFileInIntermediateFolder)" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
</Target>
|
2016-11-12 07:46:29 +00:00
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.Tools.Tests.Utilities\Microsoft.DotNet.Tools.Tests.Utilities.csproj" />
|
|
|
|
|
<ProjectReference Include="..\..\src\dotnet\dotnet.csproj" />
|
2016-12-07 21:49:15 +00:00
|
|
|
|
<ProjectReference Include="..\..\src\Microsoft.DotNet.Cli.Sln.Internal\Microsoft.DotNet.Cli.Sln.Internal.csproj" />
|
2016-11-12 07:46:29 +00:00
|
|
|
|
<ProjectReference Include="..\..\src\Microsoft.DotNet.Cli.Utils\Microsoft.DotNet.Cli.Utils.csproj" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2017-08-26 02:59:02 +00:00
|
|
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
|
|
|
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
|
|
|
|
|
<PackageReference Include="xunit" Version="2.2.0" />
|
2017-03-03 03:43:17 +00:00
|
|
|
|
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="$(PlatformAbstractionsVersion)" />
|
2017-04-05 20:50:12 +00:00
|
|
|
|
<PackageReference Include="Microsoft.DotNet.Cli.CommandLine" Version="$(CliCommandLineParserVersion)" />
|
2016-11-12 07:46:29 +00:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
</Project>
|