I am planing on writing a c# plugin for Unity, that is building a plugin.dll file outside of unity environment(in visual studio), and than using it in my unity project.
When researching this topic I found conflicting information, so I decided to ask you guys:
In visual studio I now have a project class library. When I click through properties/application/TargetFramework I can see a dropdown with different .NET frameworks. In Unity Editor I have in buildSettings/playerSettings/otherSettings/ApiCompatibilityLevel: .NET 2.0. **So which TargetFramevork should I use in Visual studio so my .dll is compatible with my unity project, and why is that**. Ofcourse I would like to use something higher than 2.0 but maybe not the latest. to enshure wider (unupdated)machine compatibility (as I understand this).
Thanks for all the info, it is much appreciated.
![alt text][1]
[1]: /storage/temp/112980-vs.png
↧