So is entitities really supposed to still run under .NET Standard 2.0 when everything else has moved to 4.0? I just keep commenting out the code in the file ApiCompatibilityLevelTest and everything continues to work. However this is pretty annoying. I am using com.unity.entities@0.11.1-preview.4 and the error still occurs when switching to .NET 4.0.
#if !NET_STANDARD_2_0
#warning Project is expected to have API Compatibility Level set to .NET Standard 2.0
#endif
.NET Standard it’s a specification, which includes .NET Framework it’s not new\old version of the same thing, it’s absolutely different things. Everything moved from old .NET Framework to new .NET Framework and .NET Standard it’s the next step for some things (In context of Unity)
But in the context of Unity they defaulted to the .NET 4.x compatibility, which most Assets including myself use. However enititities needs .NET Standard 2.0? Seems like a disconnect and doesn’t make sense to me.
Careful with this. To quote the footnote of the table you have linked. I mean, you are correct with the somewhat part, but I thought it might be good to raise awareness on that.
Thank you all for your input and insight. Reading this it seems that the .NET 4.x has more support though and even TLS 1.2 support requires the .NET 4.x setting. It does seem Unity recommends Standard 2.0 for a smaller footprint and to be more platform compatible. Unity - Manual: .NET profile support
We use some of the major assets off of the store such as Vegetation Studio Pro and almost all of them require the .NET 4.x setting and almost all of them are targeting the new DOTS systems.
Definitely something to look at and consider when creating a new project and the assets to be used.