Hi,
Thanks for posting on our forum!
Yes, compiled applications that target the .NET framework will absolutely not run on MacOS, or Linux, or Solaris or..... anything not Windows. .NET core is now portable to MacOS though. In this case, you can have three options to install and run your .NET-based Apps on your MacOS:
1) Use Visual studio environment
2) Update your codebase to .Net Core and then use .Net Core
3) Install and use a thick virtual machine that runs a full copy of Windows. This has the obvious downsides of being much more expensive (both in terms of the system resources it will need, and the software licensing costs), and you end up using Windows anyway (so you might as well just RDP to a real Windows machine).
Here is an article which includes more information on these options:
(Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)
However, because this article is kind of out-of-date, I've got some update of this article:
- After our research, installing Mono Project runtime does not always work. This tool does not support the full .NET Framework, and likely requires some non-trivial modifications to the code to make it work. If you go this route, you're either going to be limited to the areas of the Framework that are supported by Mono, or you'll have to maintain 2 different versions of the same code base. Neither option sounds very good to you.
- You should take serious care of the version of your MacOS and its correspondingly suitable .NET Core version. Here is an article which you can refer to:
https://learn.microsoft.com/en-us/dotnet/core/install/macos
Besides, in this article, I notice that your MacOS version 8.10.2 is not mentioned, so I am not sure if your version supports .Net Core. Although I do find a latest version of Visual studio for your Mac version, I still suggest you to consider twice before using it. Because if your Mac version is too old for .Net Framework 4, even you can successfully install Visual studio and use VS for your apps using .Net Framework, you may encounter issues in the future. In our world, we always suggest our clients to use appropriate OS version for appropriate services, neither too new nor too old. Here is the link for installing 2019 Visual Studio:
https://learn.microsoft.com/en-us/visualstudio/releasenotes/vs2019-mac-relnotes#8102
Finally, if you are interested in building Cross-Platform .NET Core Apps by yourself, this is the article that you can refer to:
https://stackify.com/cross-platform-net-core-apps/
(Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)
Thanks for your support!
BR,
Joan
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.