From 4c09e43f7419e3c194273f2f9dd67f03eb20e5ea Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Thu, 8 Apr 2021 13:21:53 +1200 Subject: [PATCH] Fix .NET SourceLink and warnings in NuGet package --- csharp/build_packages.bat | 2 +- csharp/src/Google.Protobuf/Google.Protobuf.csproj | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/csharp/build_packages.bat b/csharp/build_packages.bat index d7205659f1..9e68229037 100644 --- a/csharp/build_packages.bat +++ b/csharp/build_packages.bat @@ -1,7 +1,7 @@ @rem Builds Google.Protobuf NuGet packages dotnet restore src/Google.Protobuf.sln -dotnet pack -c Release src/Google.Protobuf.sln || goto :error +dotnet pack -c Release src/Google.Protobuf.sln -p:ContinuousIntegrationBuild=true || goto :error goto :EOF diff --git a/csharp/src/Google.Protobuf/Google.Protobuf.csproj b/csharp/src/Google.Protobuf/Google.Protobuf.csproj index 7e9e33a302..f40e444de9 100644 --- a/csharp/src/Google.Protobuf/Google.Protobuf.csproj +++ b/csharp/src/Google.Protobuf/Google.Protobuf.csproj @@ -15,10 +15,11 @@ Protocol;Buffers;Binary;Serialization;Format;Google;proto;proto3 C# proto3 support https://github.com/protocolbuffers/protobuf - https://github.com/protocolbuffers/protobuf/blob/master/LICENSE + BSD-3-Clause git https://github.com/protocolbuffers/protobuf.git - True + true + true $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb