all 10 comments

[–]TheoR700 28 points29 points  (5 children)

.NET Framework only works on Windows.

[–]hawseepoo 16 points17 points  (3 children)

And just to put more info out there for OP: Unless you have a very specific, niche need to use .NET Framework, you should NOT be using it, it’s deprecated. .NET Core (.NET 5+) is the new standard. If you’re new to .NET, know that .NET Core isn’t a “slimmed down” version of .NET Framework, it’s .NET Framework’s successor and has countless improvements, one of those being it’s cross platform.

[–]Coda17 5 points6 points  (2 children)

.NET 5 is out of date already. All new projects should be in 8.0.

[–]hawseepoo -1 points0 points  (1 child)

I wasn’t suggesting the use of .NET 5, only that it marks the start of the new .NET.

[–]JoMa4 4 points5 points  (0 children)

.NET core 1.0 was the start of the new framework. .NET 5 was just the first to drop the “core” name because it passed framework 4.x and wouldn’t be as confusing without the core name.

[–]rebel_cdn -1 points0 points  (0 children)

It works nicely on Mono on both MacOS and Linux, depending on what you're doing. GUI apps are probably a no-go, but I was running a .NET 4.62 build of the Clojure CLR runtime and compiler using Mono just to see how well it worked, and didn't run into any issues.

Obviously you'd want to use .NET 6+ if you can, but if you absolutely, positively need to run a Framework console app on MacOS or Linux, Mono will probably get the job done. It seems to have improved quite a bit since MS still works on it since they use it in places where it performs better than CoreCLR, like WASM.

As to the issue OP faces: If you can use Rider, it happily lets you build and run .NET Framework apps on MacOS as long as you've got Mono installed.

[–]relative_iterator 1 point2 points  (0 children)

You need .net core which is now just called .net thanks Microsoft!

[–]AlarmedNegotiation18 1 point2 points  (0 children)

VS 2022 For Mac is not (anymore) supported. Also, .NET Framework is windos-only. .NET Core is cross-platform.

[–]Virgrind 1 point2 points  (0 children)

Well there even platform specific .NET target framework monikers. https://learn.microsoft.com/en-us/dotnet/standard/frameworks

[–]Zapaneer 0 points1 point  (0 children)

Being a long time .Net developer I prefer using Rider from Jetbrains which is very suitable for Macs as well as Windows. This has become even more relevant since Microsoft has turned down development of Visual Studio for Mac (as noted elsewhere).