You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize this probably isn't a DllExport issue, but maybe others using it have run into it.
Using the latest version of Visual Studio 2019 Preview.
I have a .NET Standard 2.1 class library that exports several native APIs using [DllExport]. If I attach the debugger to the process that loads the DLL and calls the API, break points set in the class library DO NOT hit. I have Native Debugging enabled, and also Use Managed Compatibility Mode. I can confirm the APIs are being called and returning, however, because the native application that uses them is working.
Alternatively, if I build the same class library as a .NET Framework library, and repeat the scenario, the debug breakpoints DO hit.
Is there a problem with Visual Studio debugger transitioning from native to Managed under .Net Core 3.0 / .NET Standard 2.1? Or am I potentially doing something wrong, or have wrong settings?
I've done lots of searches on this topic and haven't found a good answer yet.
The text was updated successfully, but these errors were encountered:
I realize this probably isn't a DllExport issue, but maybe others using it have run into it.
Using the latest version of Visual Studio 2019 Preview.
I have a .NET Standard 2.1 class library that exports several native APIs using [DllExport]. If I attach the debugger to the process that loads the DLL and calls the API, break points set in the class library DO NOT hit. I have Native Debugging enabled, and also Use Managed Compatibility Mode. I can confirm the APIs are being called and returning, however, because the native application that uses them is working.
Alternatively, if I build the same class library as a .NET Framework library, and repeat the scenario, the debug breakpoints DO hit.
Is there a problem with Visual Studio debugger transitioning from native to Managed under .Net Core 3.0 / .NET Standard 2.1? Or am I potentially doing something wrong, or have wrong settings?
I've done lots of searches on this topic and haven't found a good answer yet.
The text was updated successfully, but these errors were encountered: