使用 nuget &符号服务器

Using nuget amp; Symbols servers(使用 nuget amp;符号服务器)
本文介绍了使用 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(代码存储库)中,并且如果需要,可以下载丢失的包.对于我团队中的所有开发人员以及我们的 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 &符号服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)