.NET publish fails during package restore

A build step failed (exit code 1). The full output is in the deploy log.

Seen1 times
WhereASP.NET

Why it happens

dotnet publish failed while restoring packages. For projects that set TreatWarningsAsErrors, NuGet's vulnerability warnings for packages in the lock file stop the restore. The NU19xx or NU1301 lines in the deploy log name the cause.

What the log looks like

Deploy log
#11 ERROR: process "/bin/sh -c dotnet publish 'Flink/Flink.csproj' -p:SolutionDir=\"$PWD/\" -c Release -o out --nologo" did not complete successfully: exit code: 1WARNING: current commit information was not captured by the build: failed to read current commit information with git rev-parse --is-inside-work-treepanelalpha.Dockerfile:10--------------------8 |     ENV DOTNET_NOLOGO=19 |     ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=110 | >>> RUN dotnet publish 'Flink/Flink.csproj' -p:SolutionDir="$PWD/" -c Release -o out --nologo11 |12 |     FROM mcr.microsoft.com/dotnet/aspnet:10.0---------…

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation