Using nuget amp; Symbols servers(使用 nuget amp;符号服务器)
问题描述
我一定是做错了.
我正在使用 VS2012,c#.我正在使用 nuget 来管理我的包.以前我总是自己创建一个外部引用"目录并管理包.我决定现在采用新的包管理方式.
I am using VS2012, c#. I am using nuget to manage my packages. Previously I always created an 'External References' directory and managed packages myself. I decided to now follow the new way of package management.
无论如何,nuget 是一种享受.我进行了设置,以便包不包含在 svn(代码存储库)中,并且如果需要,可以下载丢失的包.对于我团队中的所有开发人员以及我们的 Team City 盒子,一切正常.
Anyway, nuget is working a treat. I have it setup so that packages are not included in svn (code repository) and that missing packages get downloaded if required. All works, for all developers on my team and also on our Team City box.
当我想调试其中一个包(即进入包源)时,问题就来了.我已经按照 link 为符号源下载设置了 VS2012.但是当我运行解决方案并想进入包代码时,VS2012 给了我一个空白的外观并说找不到符号.在 Fiddler 中,我可以看到一大堆 404.
Problem comes when I want to debug one of these packages (ie step into the package source). I have setup VS2012 for symbol source download as per this link. But when I run the solution and want to step into package code, VS2012 gives me a blank look and says cant find symbols. In Fiddler I can see a whole bunch of 404s.
我期待我从 nuget 引用的包的符号被下载,然后允许我介入并调试.还是我必须手动下载源代码并将 Vs2012 指向它 - 就像我以前在进行手动包管理时那样做?
I was expecting the symbols of the packages I reference from nuget to be downloaded and then allow me to step in and debug. Or do I have to download the source manually and point Vs2012 to it - like I used to do it when doing manual package management?
我说得有道理吗?
推荐答案
这取决于构建所述包的开发者,即并非所有包作者都提供符号.
It depends on the developer that builds the said package, that is, not all package authors provide symbols.
包作者可以根据文档创建和发布符号包:
Package authors can create and publish a symbol package as per the docs:
创建和发布符号包一个>
剩下的就是在 Visual Studio 调试器配置中添加一个新的符号源(参见 这里 详细说明):
Then what's left is just add a new symbol source in Visual Studio debugger configuration (see here for detailed instructions):
http://srv.symbolsource.org/pdb/Public
这篇关于使用 nuget &符号服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 nuget &符号服务器


- MoreLinq maxBy vs LINQ max + where 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 输入按键事件处理程序 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01