2 years ago
#10 ERROR: process "/bin/bash -ol pipefail -c dotnet restore" did not complete successfully: exit code: 1
project id: 32d1c03d-d491-4382-b0d4-e9eae9f8aad7
3 Replies
I put the NIXPACKS_CSHARP_SDK_VERSION variable in there as 8.0 and tried 8.0.0 but that didn't work. The deply log indicates it's using .net8 preview dotnet-sdk-8.0.100-preview.5.23303.2.
message NETSDK1057: You are using a preview version of .NET.
I built the app in .net8.0 long term support.
Why is the build still using preview version and how can I get nixpacks to build using 8.0 long term support?
warning NETSDK1194: The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds.
RUN dotnet publish --no-restore -c Release -o out
ERROR: failed to solve: process "/bin/bash -ol pipefail -c dotnet publish --no-restore -c Release -o out" did not complete successfully: exit code: 1
Error: Docker build failed
2 years ago
Ok so the nixpacks errors are wrong. Primary constructors are now supported with .net 8 long term. Script tags can be updated in components, they won't work if put in the index file. And nixpacks does NOT support .net 8 long term support. I quess we have to wait for Railway to catch up.