question

TomaszOlszewski-8352 avatar image
0 Votes"
TomaszOlszewski-8352 asked RobCaplan edited

.NET Framework 4.5 and Visual Studio for Mac 8.10.2

Hello,
I'm green when it comes to .NET and it's my day zero but I read somewhere that I won't run a snake application using the .NET framework on a Mac? Apparently, only .NET Core works and I would need either to install Windows on a Mac or Windows virtualization, e.g. via VirtualBox. Is it true?

windows-10-hyperv
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I would like to check if the reply in this blog could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. I would really appreciate it if you could support our work in this way. Have a nice day! : )

Best Regards,
Joan

0 Votes 0 ·

Hi,

I would like to check if you have solved your issue and if the reply could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback. Your support is really important to our work and we hope that we could hear your response soon.

Have a nice day! : )

Best Regards,
Joan

0 Votes 0 ·

Hi,

We haven't heard from you for a long time and I would like to check if the reply could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback. Your support is really important to our work.

Best Regards,
Joan

0 Votes 0 ·

1 Answer

jiayaozhu-MSFT avatar image
0 Votes"
jiayaozhu-MSFT answered

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:

https://stackoverflow.com/questions/31864724/can-you-install-and-run-apps-built-on-the-net-framework-on-a-mac

(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:
1) 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.
2) 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://docs.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://docs.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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.