'How to debug a project using 'Unmanaged Exports' nuget package
I have an SDK Style .net472 project using unmanagedexports.repack\1.0.4\
The exports work correctly, but whenever I try to attach a debugger, or debug via unittest, Visual Studio will ask me:
Find Source: {projectName}.il
How can I resolve this issue? If I remove the package debugging works again.
Solution 1:[1]
I solved it by
- Using
DLLExportpackage instead ofUnmanagedExports - Using
AnyCPUinstead ofx86 - In
DLLExportconfiguration, selectx86+x64 - Use the files in the
x86output bin folder
The AnyCpu is required as a workaround for now, as DLLExport will exhibit the same behavior as the original post if just targeting x86, in current version 1.7.4
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Red Riding Hood |
