使用的NuGet&安培;符号服务器 [英] Using nuget & Symbols servers

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

问题描述

我一定是做错了。

我使用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(代码库)和丢失的包得到如果需要下载包括在内。所有的作品,在我的团队,也对我们团队市中的所有开发人员。

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.

问题出现时,我想调试这些包之一(即踏入包源)。我有符号源码下载按本链接安装VS2012。但是,当我运行的解决方案,并希望步入封装代码,VS2012给我愣了一下,说不能找到符号。在菲德勒我可以看到一大堆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&安培;符号服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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