I'm learning how to deploy .NET Core applications to multiple platforms, and I am unable to produce a .dmg
executable for the Mac OS.
This is my development environment:
- Windows 10 Professional 64 bit
- Visual Studio 2017 Professional with latest update
- Targeting .NET Core 2.1
To test the deployment process, I created a simple "hello world" .NET Core Console App. I followed the steps on the official MSDN website to deploy the application to Mac OS in Visual Studio as a Self Contained Deployment package, but I don't see a .dmg
file in the published target directory. I only see .dll
files and other project related files. I also tried to publish to the Mac OS as a Self Contained Deployment package via the .NET Core CLI by issuing the following commands, but that still did not produce the .dmg
executable:
dotnet publish -c Release --self-contained -r osx-x64
I also tried:
dotnet publish -c Release --self-contained -r osx.10.13-x64
How do I create the .dmg
executable?
Thanks.