调试私有 NuGet 包? [英] Debugging private NuGet packages?

查看:21
本文介绍了调试私有 NuGet 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用符号选项将一些私有/内部库作为 NuGet 包发布.包和符号托管在内部网络共享上.调试时如何单步执行这些包?

I've published some private/internal libraries as NuGet packages, using the symbols option. The packages and symbols are hosted on an internal network share. How can I step into these packages when debugging?

当我从这些包开始编写代码时,Visual Studio 会显示无可用源"/未找到符号"页面.单击加载符号"仅允许 pdb 文件,而不是符号包.

When I step to code from these packages, Visual Studio displays a "No Source Available" / "No Symbols Found" page. Clicking the "Load Symbols" only allows pdb files, not symbol packages.

这些包不适合在 NuGet Gallery/SymbolSource 上发布.

These packages are not suitable for publishing on NuGet Gallery/SymbolSource.

推荐答案

你用来生成带有符号的包的命令是什么?我尝试做同样的事情 nuget.exe pack -Prop Configuration=Release Framework.csproj -Symbols 这将创建两个文件:Framework.nupkgFramework.符号.nupkg.我将这些文件放在网络共享上,从另一个项目中使用它们并且调试工作正常.

What is the command that you used to generate the packages with the symbols? I tried to do the same exact thing nuget.exe pack -Prop Configuration=Release Framework.csproj -Symbols This creates two files: Framework.nupkg and Framework.symbols.nupkg. I put these files on a network share, used them from another project and debugging worked fine.

您是否尝试将 *.nupkg 和 *.symbols.nupkg 文件放在本地磁盘而不是网络共享上?

Have you tried putting the *.nupkg and *.symbols.nupkg files on a local disk instead of a network share?

这篇关于调试私有 NuGet 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆