Skip to content

Commit 4c09e43

Browse files
committed
Fix .NET SourceLink and warnings in NuGet package
1 parent 0ca4c1a commit 4c09e43

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

csharp/build_packages.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@rem Builds Google.Protobuf NuGet packages
22

33
dotnet restore src/Google.Protobuf.sln
4-
dotnet pack -c Release src/Google.Protobuf.sln || goto :error
4+
dotnet pack -c Release src/Google.Protobuf.sln -p:ContinuousIntegrationBuild=true || goto :error
55

66
goto :EOF
77

csharp/src/Google.Protobuf/Google.Protobuf.csproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
<PackageTags>Protocol;Buffers;Binary;Serialization;Format;Google;proto;proto3</PackageTags>
1616
<PackageReleaseNotes>C# proto3 support</PackageReleaseNotes>
1717
<PackageProjectUrl>https://github.com/protocolbuffers/protobuf</PackageProjectUrl>
18-
<PackageLicenseUrl>https://github.com/protocolbuffers/protobuf/blob/master/LICENSE</PackageLicenseUrl>
18+
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
1919
<RepositoryType>git</RepositoryType>
2020
<RepositoryUrl>https://github.com/protocolbuffers/protobuf.git</RepositoryUrl>
21-
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
21+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
22+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2223
<!-- Include PDB in the built .nupkg -->
2324
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2425
</PropertyGroup>

0 commit comments

Comments
 (0)