• 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.20.3</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;net50</TargetFrameworks>
12    <GenerateDocumentationFile>true</GenerateDocumentationFile>
13    <AssemblyOriginatorKeyFile>../../keys/Google.Protobuf.snk</AssemblyOriginatorKeyFile>
14    <SignAssembly>true</SignAssembly>
15    <PackageTags>Protocol;Buffers;Binary;Serialization;Format;Google;proto;proto3</PackageTags>
16    <PackageReleaseNotes>C# proto3 support</PackageReleaseNotes>
17    <PackageProjectUrl>https://github.com/protocolbuffers/protobuf</PackageProjectUrl>
18    <PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
19    <RepositoryType>git</RepositoryType>
20    <RepositoryUrl>https://github.com/protocolbuffers/protobuf.git</RepositoryUrl>
21    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
22    <EmbedUntrackedSources>true</EmbedUntrackedSources>
23    <!-- Include PDB in the built .nupkg -->
24    <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
25    <IsTrimmable>true</IsTrimmable>
26  </PropertyGroup>
27
28  <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
29    <DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_FAST_STRING</DefineConstants>
30  </PropertyGroup>
31
32  <PropertyGroup Condition=" '$(TargetFramework)' == 'net50' ">
33    <DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_FAST_STRING;GOOGLE_PROTOBUF_SIMD</DefineConstants>
34  </PropertyGroup>
35
36  <ItemGroup>
37    <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="1.0.0"/>
38    <!-- Needed for the net45 build to work on Unix. See https://github.com/dotnet/designs/pull/33 -->
39    <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0"/>
40  </ItemGroup>
41
42  <ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'netstandard1.1' ">
43    <PackageReference Include="System.Memory" Version="4.5.3"/>
44  </ItemGroup>
45
46  <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
47    <PackageReference Include="System.Memory" Version="4.5.3"/>
48    <!-- Needed for netcoreapp3.1 to work correctly. .NET is not able to load the assembly without this -->
49    <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.2"/>
50  </ItemGroup>
51
52</Project>
53