1<Project Sdk="Microsoft.NET.Sdk"> 2 <PropertyGroup> 3 <TargetFrameworks>net45;netcoreapp2.1</TargetFrameworks> 4 <OutputType>Exe</OutputType> 5 <TreatWarningsAsErrors>true</TreatWarningsAsErrors> 6 </PropertyGroup> 7 8 <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' "> 9 <DefineConstants>$(DefineConstants);GRPC_SUPPORT_WATCH;</DefineConstants> 10 </PropertyGroup> 11 12 <ItemGroup> 13 <ProjectReference Include="../Grpc.HealthCheck/Grpc.HealthCheck.csproj" /> 14 <ProjectReference Include="../Grpc.Core/Grpc.Core.csproj" /> 15 </ItemGroup> 16 17 <ItemGroup> 18 <PackageReference Include="NUnit" Version="3.10.1" /> 19 <PackageReference Include="NUnitLite" Version="3.10.1" /> 20 </ItemGroup> 21 22 <ItemGroup Condition=" '$(TargetFramework)' == 'net45' "> 23 <Reference Include="System" /> 24 <Reference Include="Microsoft.CSharp" /> 25 </ItemGroup> 26 27 <ItemGroup> 28 <Compile Include="..\Grpc.Core.Api\Version.cs" /> 29 </ItemGroup> 30 31</Project> 32