No .NET 4.x in player settings

I don’t have the option to choose .NET 4.x in the player settings, yet an asset I want to integrate requires it.

I am using 2021.2 on MacOS

What am I missing? Got to install some .NET SDK or some Unity package? And if so, which (there’s no .NET 4.x download on .NET Downloads (Linux, macOS, and Windows))

3 Likes

In Unity 2021.2 .NET 4.x Api Compatability Level was renamed to .NET Framework.

Off-topic: in fact old name .NET 4.x is kinda incorrect because there never was any .NET 4.x. the right name for it was .NET Framework 4.x even in pre .NET/.NET Core era

15 Likes

That is… more than confusing. Especially because the official documentation still says 4.x - Unity - Manual: .NET profile support

7 Likes

I have the same problem. I changed the player settings but I still can not use System.IO.Ports. Can u solve your problem??

Same here cannot find 4.0 anymore

This may be what you are looking for. I couldn’t find .net 4.x sdk, but this “Framework” version says it is used for application development. Sorry if this thread is necroed by this response, but I think a possible answer should be posted here since it was the first thing I found on my Google search. https://www.microsoft.com/en-us/download/details.aspx?id=17851

1 Like

I use Unity on MacOS too, and I find answer to your question in Unity documentation (Configuration part) below: Unity - Manual: macOS player settings
Hope this will be helpful!

3 Likes

I just saw this, is very strange decision to be named as a lower than v2.0 version tbh

2 Likes

All you need is .NET Framework!

1 Like

i have it,but unfortunately visual studio is not working properly with this, as my other projects are working fine, just one of them is not working properly.

Problem solved!Thanks a lot.

Please use the like button to show appreciation instead of necro posting.
Thread locked