| <Project Sdk="Microsoft.NET.Sdk" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <AssemblyName>Protobuf.MSBuild</AssemblyName> | |
| <VersionPrefix>$(GrpcCsharpVersion)</VersionPrefix> | |
| <!-- If changing targets, change also paths in Google.Protobuf.Tools.targets. --> | |
| <TargetFrameworks>net45;netstandard2.0</TargetFrameworks> | |
| <TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |
| </PropertyGroup> | |
| <Import Project="SourceLink.csproj.include" /> | |
| <PropertyGroup Label="Asset root folders."> | |
| <!-- Root of well known types .proto files --> | |
| <Assets_ProtoInclude>../../../third_party/protobuf/src/google/protobuf/</Assets_ProtoInclude> | |
| <!-- Protocol buffers compiler binaries --> | |
| <Assets_ProtoCompiler>../protoc_plugins/protoc_</Assets_ProtoCompiler> | |
| <!-- Plugins binaries --> | |
| <Assets_GrpcPlugins>../protoc_plugins/</Assets_GrpcPlugins> | |
| </PropertyGroup> | |
| <PropertyGroup Condition=" '$(TargetFramework)' != 'net45' "> | |
| <DefineConstants>$(DefineConstants);NETCORE</DefineConstants> | |
| </PropertyGroup> | |
| <PropertyGroup Label="NuGet package definition" Condition=" '$(Configuration)' == 'Release' "> | |
| <BuildOutputTargetFolder>build\_protobuf\</BuildOutputTargetFolder> | |
| <DevelopmentDependency>true</DevelopmentDependency> | |
| <NoPackageAnalysis>true</NoPackageAnalysis> | |
| <PackageId>Grpc.Tools</PackageId> | |
| <Authors>The gRPC Authors</Authors> | |
| <Copyright>Copyright 2018 The gRPC Authors</Copyright> | |
| <Description>gRPC and Protocol Buffer compiler for C# projects</Description> | |
| <PackageIcon>packageIcon.png</PackageIcon> | |
| <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> | |
| <PackageProjectUrl>https://github.com/grpc/grpc</PackageProjectUrl> | |
| <PackageTags>gRPC RPC HTTP/2</PackageTags> | |
| <PackageReadmeFile>README.md</PackageReadmeFile> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <None Include="../packageIcon.png" Pack="true" PackagePath="\"/> | |
| <None Include="README.md" Pack="true" PackagePath="\"/> | |
| </ItemGroup> | |
| <ItemGroup Label="NuGet package assets"> | |
| <None Pack="true" PackagePath="build\" Include="build\**\*.xml; build\**\*.props; build\**\*.targets;" /> | |
| <!-- Protobuf assets - well known types --> | |
| <_ProtoAssetName Include="any;api;descriptor;duration;empty;field_mask; | |
| source_context;struct;timestamp;type;wrappers" /> | |
| <_Asset PackagePath="build/native/include/google/protobuf/" Include="@(_ProtoAssetName->'$(Assets_ProtoInclude)%(Identity).proto')" /> | |
| <!-- protocol buffers compiler --> | |
| <_Asset PackagePath="tools/windows_x86/" Include="$(Assets_ProtoCompiler)windows_x86/protoc.exe" /> | |
| <_Asset PackagePath="tools/windows_x64/" Include="$(Assets_ProtoCompiler)windows_x64/protoc.exe" /> | |
| <_Asset PackagePath="tools/linux_x86/" Include="$(Assets_ProtoCompiler)linux_x86/protoc" /> | |
| <_Asset PackagePath="tools/linux_x64/" Include="$(Assets_ProtoCompiler)linux_x64/protoc" /> | |
| <_Asset PackagePath="tools/linux_arm64/" Include="$(Assets_ProtoCompiler)linux_aarch64/protoc" /> | |
| <_Asset PackagePath="tools/macosx_x64/" Include="$(Assets_ProtoCompiler)macos_x64/protoc" /> | |
| <!-- gRPC protocol buffer compiler plugins --> | |
| <_Asset PackagePath="tools/windows_x86/" Include="$(Assets_GrpcPlugins)protoc_windows_x86/grpc_csharp_plugin.exe" /> | |
| <_Asset PackagePath="tools/windows_x64/" Include="$(Assets_GrpcPlugins)protoc_windows_x64/grpc_csharp_plugin.exe" /> | |
| <_Asset PackagePath="tools/linux_x86/" Include="$(Assets_GrpcPlugins)protoc_linux_x86/grpc_csharp_plugin" /> | |
| <_Asset PackagePath="tools/linux_x64/" Include="$(Assets_GrpcPlugins)protoc_linux_x64/grpc_csharp_plugin" /> | |
| <_Asset PackagePath="tools/linux_arm64/" Include="$(Assets_GrpcPlugins)protoc_linux_aarch64/grpc_csharp_plugin" /> | |
| <_Asset PackagePath="tools/macosx_x64/" Include="$(Assets_GrpcPlugins)protoc_macos_x64/grpc_csharp_plugin" /> | |
| <None Include="@(_Asset)" Pack="true" Visible="false" /> | |
| </ItemGroup> | |
| <ItemGroup Condition=" '$(TargetFramework)' == 'net45' "> | |
| <Reference Include="Microsoft.Build.Framework; Microsoft.Build.Utilities.v4.0" Pack="false" /> | |
| </ItemGroup> | |
| <ItemGroup Condition=" '$(TargetFramework)' != 'net45' "> | |
| <PackageReference Include="Microsoft.Build.Framework; Microsoft.Build.Utilities.Core" Version="15.6.*" /> | |
| <!-- Set PrivateAssets="All" on all items, even those implicitly added, | |
| so that they do not become dependencies of this package. --> | |
| <PackageReference Update="@(PackageReference)" PrivateAssets="All" /> | |
| </ItemGroup> | |
| </Project> |