I’m writing a C++/CLI dll for C# unity plugin to import from,
but since I’m using VS2015, so it seems C++/CLI can only
be created based on .Net 4.0, so the C# project must be use
.Net 4.0 also which not support by current Unity(5.5.0f3),
I just wonder when will Unity support .Net 4.0 framework?
if you write a C++/CLI library, it’s techically cli… so not the same as a native C++ program. Though can also write native programs in Visual Studio.
You can always go into the project in visual studio and change the target runtime of your project. It defaults to newer projects, but you can change it to older ones.
in VS2015, C++/CLI can only built on .Net 4.0 framework,no matter the
references seem to be all in .Net 2.0 framework version.
There is a build error like implicitly linked to .Net 4.0 bla bla bla in c# project when you
choose .Net 3.5 framework and refer C++/CLI dll.