A project I am working on depends on a NuGet package. The dll file inside package is compiled in Release mode, therefore using debugger to inspect code (which is my goal) is imp
You could ask the author of the nuget package to publish source and debug symbols of the package to a public symbolsource server and reference it. After that you would keep using the release version of the dll but be able to debug into it.
This happens because the nuget is using a specific version of "System.Memory, Version=4.0.1.1",
and you have System.Memory, Version=4.0.1.0 referenced in your project
. You should update that reference and it should be good. So the problem is with your DLL not the NuGet. Probably when you removed the nuget you downgraded System.Memory, you should update that explicitly to the version that the error says it requires through NuGet.
Pro Tip if you want to mess around with nugets: