Using a .net4 based dll from .net2 based app not w

2019-07-24 16:11发布

问题:

Given this reference: https://code.msdn.microsoft.com/windowsdesktop/Using-a-NET-4-Based-DLL-bb141db3

Is it possible to add a .net2/3.5 website (not a web project) project to this solution and make it work with the adapter? I've tried but no luck. I keep getting error:

Could not load file or assembly 'Net4Assembly' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.