Is it possible to use a .NET C++/CLI DLL from a .NET Core 2 application on Windows?
I have a DLL built with <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
. From a .NET Core test app, I do:
Assembly.LoadFrom("mycliassembly.dll");
And I receive this exception:
Could not load file or assembly ... Format of the executable (.exe) or library (.dll) is invalid.
So the obvious answer would be no. But.. is there a way, assuming we are talking about Windows only?