With .NET Framework DLLs, it is possible to disable optimizations using an .INI file with this contents, and the name matching the assembly followed by .ini
:
[.NET Framework Debugging Control]
GenerateTrackingInfo=1
AllowOptimize=0
(See https://stackoverflow.com/a/12899739/402949)
I've tried that approach with a .NET Core app, and it doesn't work, which is not surprising since the syntax references ".NET Framework". Is there a similar method for disabling optimizations for a 3rd party .NET Core DLL?