Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Managed C++ with .NET Core 2.0

$
0
0

Hello,

Sorry if this is wrong thread but I couldn't find better one.

I've created Managed C++ library (.NET 4.6.1), which has one class and one method. Then I've created .NET Core 2.0 console application and added reference to Managed C++ library. I can build solution and no errors occurs. But. When I run .NET Core console application I get 2 exceptions at the moment of creating object from Manage C++ library:

"System.EntryPointNotFoundException: 'A library name must be specified in a DllImport attribute applied to non-IJW methods."

<CrtImplementationDetails>.ModuleLoadException: 'The C++ module failed to load.'

So my question are:

1. Is it possible at all to use Managed C++ dlls with .Net Core apps? 

2. If 'Yes' what went wrong?

Thanks in advance!



Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>