使用nuget&符号服务器 [英] Using nuget & Symbols servers

查看:170
本文介绍了使用nuget&符号服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须做错了



我正在使用VS2012,c#。我正在使用nuget来管理我的包。以前,我一直创建一个外部引用目录并自己管理包。我决定现在遵循新的包裹管理方式。



无论如何,nuget正在工作。我有它的设置,以便软件包不包括在svn(代码存储库)中,如果需要,丢失的软件包将被下载。所有的工作,对我的团队的所有开发人员,还有我们的团队城市框。



当我想调试这些包之一时,问题出现(即进入包源)。根据链接,我已经设置了VS2012进行符号源下载。但是,当我运行解决方案并希望进入程序包代码时,VS2012给了我一个空白的表情,说找不到符号。在Fiddler中,我可以看到一大堆404。



我期待从nuget引用的包的符号被下载,然后允许我进入和调试。或者我必须手动下载源码,并将Vs2012指向它 - 就像我以前在手动程序包管理时一样吗?



我有意义吗? >

解决方案

这取决于构建所述包的开发人员,也就是说,并不是所有的包作者提供符号。



包作者可以根据文档创建和发布符号包:



创建和发布符号包



那么剩下的只是在Visual Studio调试器配置中添加一个新的符号源(请参阅 here 详细说明):

  http://srv.symbolsource.org/pdb/Public 


I must be doing it wrong.

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.

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.

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.

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?

Am I making sense?

解决方案

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:

Creating and Publishing a Symbol Package

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&符号服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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