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 8 <Import Project="..\Grpc.Core\SourceLink.csproj.include" /> 9 10 <ItemGroup> 11 <ProjectReference Include="..\Grpc.Tools\Grpc.Tools.csproj" /> 12 </ItemGroup> 13 14 <ItemGroup> 15 <PackageReference Include="Moq" Version="4.8.3" /> 16 <PackageReference Include="NUnit; NUnitLite" Version="3.10.1" /> 17 <PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" /> 18 </ItemGroup> 19 20 <PropertyGroup Condition=" '$(TargetFramework)' != 'net45' "> 21 <DefineConstants>$(DefineConstants);NETCORE</DefineConstants> 22 </PropertyGroup> 23 24 <ItemGroup Condition=" '$(TargetFramework)' == 'net45' "> 25 <Reference Include="Microsoft.Build.Framework; Microsoft.Build.Utilities.v4.0" /> 26 </ItemGroup> 27 28 <ItemGroup Condition=" '$(TargetFramework)' != 'net45' "> 29 <PackageReference Include="Microsoft.Build.Framework; Microsoft.Build.Utilities.Core" Version="15.6.*" /> 30 </ItemGroup> 31 32</Project> 33