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