C
C#16mo ago
slowslothio

❔ .NET Framework 3.5 with Mono?

I'm not sure if this is the right place, but I'll start here... I am needing to build an older project using the .NET Framework 3.5. I know that there is no official support for this on MacOS, but I do know that Mono is there. The problem I have is that I am not sure of Mono supports 3.5 on MacOS. I have installed it, but when I try to open projects with VS Code, I am don't the project isn't supported. Before I get all the MacOS hate, I get it.. but I do a lot of C# development now without issues... this is the first time I've had to use an older framework. I am just working on class libraries. I am not doing WPF or anything else special.
5 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Denis
Denis16mo ago
And you do not have the possibility to upgrade to a higher .net version?
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
reflectronic
reflectronic16mo ago
you can use the .NET SDK like, this
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net35</TargetFramework>
</PropertyGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net35</TargetFramework>
</PropertyGroup>
</Project>
will just work on macOS with the .NET 7 SDK you do not need mono to build it. though, if you want to run a .NET Framework program you would need mono. (dotnet run would work fine i believe.)
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server