Replace NuGet package with a local dll file

前端 未结 2 932
南旧
南旧 2021-01-26 01:27

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

2条回答
  •  别那么骄傲
    2021-01-26 01:52

    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:

    • It is essentially a ZIP file
    • Download Nuget
    • Change extension to .zip
    • Decompress
    • Voila, you have some dll-s

提交回复
热议问题