微软更新.Net源代码检索网站

微软最近更新了查看.Net源代码的网站,.Net Framework团队也发了篇blog: A new look for .NET Reference Source

新的网站体验非常不错,搜索响应非常迅速,还支持”Go to Definition”跟”Find All References”,URL即是链接到某个assembly或者是某个文件的第几行,比如像这样:/#System.Core,或者是像这样:/#mscorlib/system/environment.cs#56。这些都是由还在CTP阶段的Roslyn API(微软的.Net compiler as service)项目构建。另外.Net源代码也可以下载下来,还附带了.sln的solution文件,方便在Visual Studio里直接查看。目前的代码是基于.Net 4.5.1这个版本的,.Net团队意思是以后网站会随着.Net重大更新而同步更新。

这次的更新,还带来了直接在Visual Studio里debug .Net代码的功能。如何在VS2013里设置可以戳这里:”How to configure Visual Studio for debugging .NET framework“。

目前,社区里也有人做了一个Visual Studio的插件,就是按F12直接转到这个网站上相应的代码。

最后值得一提的是.Net源代码的license是MS-RSL(MS Reference Source License)。

“Reference use” means use of the software within your company as a reference, in read only form, for the sole purposes of debugging your products, maintaining your products, or enhancing the interoperability of your products with the software, and specifically excludes the right to distribute the software outside of your company.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.