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

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

问题描述

我已经使用symbol选项将一些私有/内部库发布为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.nupkg Framework.symbols.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天全站免登陆