No matter what, .NET will not allow me to publish the app self-contained. It fills the export directory with dozens of files. While I'm new and am not ready to publish professional apps yet, I know for a fact that this is not a user friendly approach to deploying apps. Please help me figure out why I cannot export the app in self-contained mode. Here is the command that I'm using:
dotnet publish -r win-x64 --self-contained true -c release
I'm also publishing it to Mac and Linux:
dotnet publish -r linux-x64 --self-contained true -c release
dotnet publish -r osx-x64 --self-contained true -c release
What am I doing wrong?
Console.Writeline("Hello world!");
that should have no problems deploying. The result is the same--no self contained executable.--self-contained [true|false]
Publishes the .NET runtime with your application so the runtime doesn't need to be installed on the target machine.