Google.Protobuf.csproj 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.19.4</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. <PackageLicenseUrl>https://github.com/protocolbuffers/protobuf/blob/master/LICENSE</PackageLicenseUrl>
  18. <RepositoryType>git</RepositoryType>
  19. <RepositoryUrl>https://github.com/protocolbuffers/protobuf.git</RepositoryUrl>
  20. <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
  21. <!-- Include PDB in the built .nupkg -->
  22. <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
  23. </PropertyGroup>
  24. <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
  25. <DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_FAST_STRING</DefineConstants>
  26. </PropertyGroup>
  27. <PropertyGroup Condition=" '$(TargetFramework)' == 'net50' ">
  28. <DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_SUPPORT_FAST_STRING;GOOGLE_PROTOBUF_SIMD</DefineConstants>
  29. </PropertyGroup>
  30. <ItemGroup>
  31. <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="1.0.0"/>
  32. <!-- Needed for the net45 build to work on Unix. See https://github.com/dotnet/designs/pull/33 -->
  33. <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0"/>
  34. </ItemGroup>
  35. <ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'netstandard1.1' ">
  36. <PackageReference Include="System.Memory" Version="4.5.3"/>
  37. </ItemGroup>
  38. <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
  39. <PackageReference Include="System.Memory" Version="4.5.3"/>
  40. <!-- Needed for netcoreapp2.1 to work correctly. .NET is not able to load the assembly without this -->
  41. <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.2"/>
  42. </ItemGroup>
  43. </Project>