Google.Protobuf.csproj 2.8 KB

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