• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<Project Sdk="Microsoft.NET.Sdk">
2
3  <PropertyGroup>
4    <Description>C# runtime library for Protocol Buffers - Google's data interchange format.</Description>
5    <Copyright>Copyright 2015, Google Inc.</Copyright>
6    <AssemblyTitle>Google Protocol Buffers</AssemblyTitle>
7    <VersionPrefix>3.14.0</VersionPrefix>
8    <!-- C# 7.2 is required for Span/BufferWriter/ReadOnlySequence -->
9    <LangVersion>7.2</LangVersion>
10    <Authors>Google Inc.</Authors>
11    <TargetFrameworks>netstandard1.1;netstandard2.0;net45</TargetFrameworks>
12    <GenerateDocumentationFile>true</GenerateDocumentationFile>
13    <AssemblyOriginatorKeyFile>../../keys/Google.Protobuf.snk</AssemblyOriginatorKeyFile>
14    <SignAssembly>true</SignAssembly>
15    <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
16    <PackageTags>Protocol;Buffers;Binary;Serialization;Format;Google;proto;proto3</PackageTags>
17    <PackageReleaseNotes>C# proto3 support</PackageReleaseNotes>
18    <PackageProjectUrl>https://github.com/protocolbuffers/protobuf</PackageProjectUrl>
19    <PackageLicenseUrl>https://github.com/protocolbuffers/protobuf/blob/master/LICENSE</PackageLicenseUrl>
20    <RepositoryType>git</RepositoryType>
21    <RepositoryUrl>https://github.com/protocolbuffers/protobuf.git</RepositoryUrl>
22    <DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY</DefineConstants>
23    <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
24    <!-- Include PDB in the built .nupkg -->
25    <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
26  </PropertyGroup>
27
28  <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
29    <DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_FAST_STRING</DefineConstants>
30  </PropertyGroup>
31
32  <ItemGroup>
33    <PackageReference Include="System.Memory" Version="4.5.3"/>
34    <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="1.0.0"/>
35    <!-- Needed for the net45 build to work on Unix. See https://github.com/dotnet/designs/pull/33 -->
36    <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0"/>
37  </ItemGroup>
38
39  <!-- Needed for netcoreapp2.1 to work correctly. .NET is not able to load the assembly without this -->
40  <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
41    <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.2"/>
42  </ItemGroup>
43
44</Project>
45