Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UnmanagedExports equivalent c#.Core2

I'm rather new to C# and been doing a few projects in .Net Framework but been pushed towards the .Core side of things.

My question is - I was using UnmanagedExports on a few of my projects to create some library's (Linux / Win) but am unable to get exports working with .Core2. I get no errors and everything compiles fine just the exports are not exposed.

I made sure that the compile arch was set to x64 as any wont build correctly. I'm assuming that the library is not compatible with .core 2 and that I need to use a different approach but am unsure what path to take. some guidance will go a long way.

like image 396
Rose Jackson Avatar asked Nov 08 '22 13:11

Rose Jackson


1 Answers

Have a look at UnmanagedExports.Repack. In a quick test project I can see DLL exports via Dependency Walker in a .NET Core 2.1 DLL. But I have not tested if they get called correctly because it would take me a while and the question is kind of old ;)

like image 53
stev-e Avatar answered Nov 15 '22 07:11

stev-e