Google.Protobuf.csproj 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.15.2</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</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. <ItemGroup>
  28. <PackageReference Include="System.Memory" Version="4.5.3"/>
  29. <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="1.0.0"/>
  30. <!-- Needed for the net45 build to work on Unix. See https://github.com/dotnet/designs/pull/33 -->
  31. <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0"/>
  32. </ItemGroup>
  33. <!-- Needed for netcoreapp2.1 to work correctly. .NET is not able to load the assembly without this -->
  34. <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
  35. <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.2"/>
  36. </ItemGroup>
  37. </Project>