You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet.exe version 10 ignores the flag --self-contained false and builds the self-contained executable if the option p:PublishSingleFile=true is setΒ #51888
Hello
I publish an application using the command line
dotnet publish Project.csproj -o .\Publish -p:PublishReadyToRun=false -p:PublishSingleFile=true --self-contained false
It means I want to get a small single .exe but not the large self-contained .exe in the output folder.
is not defined in the .csproj
If I build using the dotnet SDK 8.0 or 9.0, I get the small sibgle exe.
But dotnet SDK 10 ignores the explicit flag --self-contained false and build the big self-contained exe.
To Reproduce
create the simple Console .csproj, without Property