i use 2017.1,but can used .net4.6 and c#6..why?

i set the “player setting” api 4.6 and .net 4.6
but in vs2017,
i can not use like “async await”
i hava a dll is .net 4.0 , the unity3d colsole error “TypeLoadException: Error Loading class”

I believe that’s only for “Build”. The Editor still uses .NET 3.5, so you have to use shims for the 4.6 functionality and map different DLL’s for 4.6. That’s how JSON .NET for Unity does it to support .NET 4.5.2 on UWP. It uses 3.5 DLLs for Editor and all other platforms, but has a 4.5.2 compiled DLL mapped to UWP (when using .NET backened).

Hopefully there will be updated mapping options soon that allow specifying the .NET version as well (it’s being discussed) to make it possible to dynamically support 4.6.

@Dustin-Horne Editor supports .NET 4.6 if you enable it in the player settings since 2017.1. It’s still in experimental mode.

@cnbryan2017 we’ll need a bug report on this.

1 Like

That’s great to know! I was still confused about that.