• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<Project Sdk="Microsoft.NET.Sdk">
2  <!-- If you update this, update the .csproj in the Docker file as well -->
3
4  <PropertyGroup>
5    <Description>C# runtime library for Protocol Buffers - Google's data interchange format.</Description>
6    <Copyright>Copyright 2015, Google Inc.</Copyright>
7    <AssemblyTitle>Google Protocol Buffers</AssemblyTitle>
8    <VersionPrefix>3.29.4</VersionPrefix>
9    <LangVersion>10.0</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    <!-- Disable warnings about AOT and trimming features on older targets, e.g. netstandard2.0.
27         For now, continue to apply these features to these targets because some packages don't have a target that supports them -->
28    <NoWarn>$(NoWarn);NETSDK1195;NETSDK1210</NoWarn>
29  </PropertyGroup>
30
31  <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
32    <DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_FAST_STRING</DefineConstants>
33  </PropertyGroup>
34
35  <PropertyGroup Condition=" '$(TargetFramework)' == 'net50' ">
36    <DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_FAST_STRING;GOOGLE_PROTOBUF_SIMD</DefineConstants>
37  </PropertyGroup>
38
39  <ItemGroup>
40    <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="1.0.0"/>
41    <!-- Needed for the net45 build to work on Unix. See https://github.com/dotnet/designs/pull/33 -->
42    <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0"/>
43  </ItemGroup>
44
45  <ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'netstandard1.1' ">
46    <!-- TODO -->
47    <PackageReference Include="System.Memory" Version="4.5.3"/>
48  </ItemGroup>
49
50  <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
51    <PackageReference Include="System.Memory" Version="4.5.3"/>
52    <!-- Needed for netcoreapp3.1 to work correctly. .NET is not able to load the assembly without this -->
53    <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.2"/>
54  </ItemGroup>
55
56</Project>
57