Microsoft.NET.Pack.Tests.csproj 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the MIT license. See License.txt in the project root for full license information. -->
  3. <Project>
  4. <PropertyGroup>
  5. <EnableDefaultItems>false</EnableDefaultItems>
  6. <OutDirName>Tests\$(MSBuildProjectName)</OutDirName>
  7. </PropertyGroup>
  8. <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
  9. <PropertyGroup>
  10. <OutputType>Exe</OutputType>
  11. <TargetFramework>$(SdkTargetFramework)</TargetFramework>
  12. </PropertyGroup>
  13. <PropertyGroup>
  14. <PackageId>testSdkPack</PackageId>
  15. </PropertyGroup>
  16. <ItemGroup>
  17. <PackageReference Include="FluentAssertions" />
  18. </ItemGroup>
  19. <ItemGroup>
  20. <ProjectReference Include="..\Microsoft.NET.TestFramework\Microsoft.NET.TestFramework.csproj" />
  21. </ItemGroup>
  22. <ItemGroup>
  23. <Compile Include="**\*.cs" Exclude="$(GlobalExclude)" />
  24. <Compile Include="$(RepoRoot)src\Common\EnvironmentVariableNames.cs" LinkBase="Common"/>
  25. </ItemGroup>
  26. <ItemGroup>
  27. <EmbeddedResource Include="**\*.resx" Exclude="$(GlobalExclude)" />
  28. <!-- Use string resources from tasks in order to validate test output. -->
  29. <EmbeddedResource Include="..\..\src\Tasks\Common\Resources\Strings.resx" LinkBase="Resources" GenerateSource="True" Namespace="Microsoft.NET.Build.Tasks" />
  30. <EmbeddedResource Include="..\..\src\Cli\dotnet\CommonLocalizableStrings.resx" LinkBase="Resources" GenerateSource="True" Namespace="Microsoft.DotNet.Tools" />
  31. </ItemGroup>
  32. <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
  33. </Project>