Monday, October 22, 2018

Is there a way to use a .NET 2.0 inside of a .NET 4.6 Unity solution?

I’m allowing modding in my game and the core of the game uses 4.6 in favor of newer C# features. However, CodeDOM, what I’m using to compile custom player written scripts into memory, does not work with 4.6. Is there a way to have a DLL using 2.0 that contains my CodeDOM code and use that in my 4.6 project? Or does Unity not allow multi-targeting? I noticed Unity does have an API Compatibility Level option, but unfortunately it is disabled when using 4.6. I don’t want to continue using 3.5 anymore, even if it’s the only way this is going to work. Thank you.

Is there a way to use a .NET 2.0 inside of a .NET 4.6 Unity solution? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team