How to see .net library source code with ReSharper 5 and visual studio 2010?

倾然丶 夕夏残阳落幕 提交于 2020-01-22 14:02:41

问题


I used to see any .net source code (like System.String) with ReSharper and Visual Studio 2008. since I migrated to Visual studio 2010, this option doesn't give the full source code but just the definitions of the class.

How can I fix this, to use the microsoft's symbols server again?

Edit: Maybe the problem is only with .net-4.0 assemblies. is microsoft released symbols to to .net-4.0 assemblies also?


回答1:


Microsoft released sources for .NET 4 release, so R# have to work just fine. Some debugging information may be found in View -> Output -> ReSharper after unsuccessful navigation. Sometimes R# can't download sources or symbols files because of server errors on referencesource.microsoft.com side.




回答2:


If you go to ReSharper -> Options -> Tools -> External Sources, you can set the preference order of where ReSharper gets its definition view from. Make sure "Sources from symbol files" is checked, and check the options at the bottom of that page.




回答3:


You can download all of the source and symbols and install it in one go.

http://blogs.msdn.com/b/rscc/

and then follow adrian's advice.



来源:https://stackoverflow.com/questions/2925149/how-to-see-net-library-source-code-with-resharper-5-and-visual-studio-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!