我如何进入微软的.NET框架源代码? [英] How can I step into Microsoft's .NET framework source code?

查看:196
本文介绍了我如何进入微软的.NET框架源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想加入微软的源代码,但不能。

I'd like to step into Microsoft's source code but cannot.

我遵循 配置Visual Studio进行调试 。特别是,我禁用启用我的代码并启用启用.NET Framework源代码步进。最后,将源符号位置设置为 http://referencesource.microsoft.com/symbols

但是,当我双击堆栈上的一个框架项目时,我得到一些汇编代码,而不是C#代码。此外,转到源代码菜单项也被禁用。

However, when I double click on a frame item on the stack, I get some assembler code, not C# code. Also the "go to source code" menu item is disabled.

我正在使用 Visual  Studio  2008 SP1和.NET 3.5 SP1。我为下载的东西创建了一个全新的文件夹。我得到一些pdb文件,但没有C#文件。

I am using Visual Studio 2008 SP1 and .NET 3.5 SP1. I created a brand new folder for the downloaded stuff. I get some pdb files but no C# file.

我看着 配置Visual Studio来调试.NET Framework源代码 并安装路径。没什么区别。我正在尝试WPF的源代码。 pdb被下载,所以看起来像Microsoft支持那些。

I looked at Configuring Visual Studio to Debug .NET Framework Source Code and installed the path. It makes no difference. I am trying to the source code of WPF. The pdb are downloaded so it looks like Microsoft supports those.

有没有办法解决这个问题?

Is there a trick to fix this?

推荐答案

据我所观察到的.NET框架与参考源的工作原理很好,您可以在任何地方找到指南。使用VS SP1,您甚至不需要添加引用源服务器的路径。

As far as I have observed .NET framework stepping with the reference source works just fine with the guides you find everywhere. With VS SP1 you don't even have to add the path to the reference source server.

但问题是不匹配的版本。框架程序集更新为.NET 3.5 SP1,Vista SP2,Windows 7,但是它们的引用源PDB没有提供。 相应的参考源论坛也似乎已经死了。我记得阅读它花了一点时间来推出初始符号,因为它们构建了一个可以快速推送新版本的基础架构。或者没有真正发生,或者没有使用它。

But the problem are mismatched versions. The framework assemblies were updated with .NET 3.5 SP1, Vista SP2, Windows 7, ... but their reference source PDBs weren't made available. The corresponding reference source forum seems quite dead, too. I remember reading that it took them a bit longer to push out the initial symbols because they built an infrastructure that would allow them to push new versions quickly. Either that didn't really happen or they don't use it.

这篇关于我如何进入微软的.NET框架源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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