Replace NuGet package with a local dll file

前端 未结 2 933
南旧
南旧 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:46

    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.

    0 讨论(0)
  • 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
    0 讨论(0)
提交回复
热议问题