From 7d1f2a72c09e7c7e0b21f561b32faa7625bdb0a8 Mon Sep 17 00:00:00 2001 From: deannagarcia <69992229+deannagarcia@users.noreply.github.com> Date: Wed, 19 Oct 2022 15:58:58 -0700 Subject: [PATCH] Fix C# Builds We need to call `dotnet restore` in order to properly setup the libraries to pack. The docker image we are using will save the packages in `/lib/csharp` --- csharp/build_release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/csharp/build_release.sh b/csharp/build_release.sh index 1c3a9de002..8a641b21b3 100755 --- a/csharp/build_release.sh +++ b/csharp/build_release.sh @@ -7,4 +7,5 @@ set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true set DOTNET_CLI_TELEMETRY_OPTOUT=true # Builds Google.Protobuf NuGet packages +dotnet restore -s /lib/csharp/ src/Google.Protobuf/Google.Protobuf.csproj dotnet pack --no-restore -c Release src/Google.Protobuf.sln -p:ContinuousIntegrationBuild=true