Grpc.Tools.Tests.csproj 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <Project Sdk="Microsoft.NET.Sdk" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  2. <PropertyGroup>
  3. <TargetFrameworks>net45;netcoreapp2.1</TargetFrameworks>
  4. <OutputType>Exe</OutputType>
  5. <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  6. </PropertyGroup>
  7. <Import Project="..\Grpc.Core\SourceLink.csproj.include" />
  8. <ItemGroup>
  9. <ProjectReference Include="..\Grpc.Tools\Grpc.Tools.csproj" />
  10. </ItemGroup>
  11. <ItemGroup>
  12. <PackageReference Include="Moq" Version="4.8.3" />
  13. <PackageReference Include="NUnit; NUnitLite" Version="3.10.1" />
  14. <PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
  15. </ItemGroup>
  16. <PropertyGroup Condition=" '$(TargetFramework)' != 'net45' ">
  17. <DefineConstants>$(DefineConstants);NETCORE</DefineConstants>
  18. </PropertyGroup>
  19. <ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
  20. <Reference Include="Microsoft.Build.Framework; Microsoft.Build.Utilities.v4.0" />
  21. </ItemGroup>
  22. <ItemGroup Condition=" '$(TargetFramework)' != 'net45' ">
  23. <PackageReference Include="Microsoft.Build.Framework; Microsoft.Build.Utilities.Core" Version="15.6.*" />
  24. </ItemGroup>
  25. </Project>