Closed Vhab closed 2 months ago
I've setup a production case here: https://github.com/Vhab/DotnetContainerPublish8-0-400-Repro
It seems to trigger when multiple project dependencies are involved, and somewhere in the tree they converge to the same dependency. At least that's my impression from my limited testing.
Commenting here for completeness but this is a hard crash in the SDK that we will be releasing a 401 hotfix for in the next day. Further details on the SDK issue at https://github.com/dotnet/sdk/issues/42719#issuecomment-2288899273.
We're still gathering more information, but would like to already start the conversation and see if we're the only one affected.
Since yesterday's release of .NET 8.0.400, our CI pipelines are unable to build containerized versions of our application.
The error we're seeing is as follows:
The logfiles mentioned in the error don't contain any additional information not already printed in the log above.
Our build command looks as following and is being executed on ubuntu:
We're not seeing the same error with
dotnet build
, and not with any non-containerdotnet publish
steps we have.I have since been able to reproduce this on Windows 11 + .NET SDK 8.0.400 as well, with the simplified command:
dotnet publish /t:PublishContainer myproject.csproj
Will try to create a minimal .csproj to reproduce.