how can i see source code of built in controls in visual studio offline?
3 Answers
http://referencesource.microsoft.com/netframework.aspx
Note that this is shared-source, not open-source. (You can't contribute code)
Comments
In addition to what Schabse Laks writes on downloading the sources at http://referencesource.microsoft.com/netframework.aspx:
There is more info on the sourcecode at http://referencesource.microsoft.com/
You can also configure the .NET debuggers to use http://referencesource.microsoft.com/symbols as a symbol server and step through the .NET 4.0 source code:
- Steps for Visual Studio by Scott Hanselman
- A small fix for the order of debug symbols in Visual Studio 2010 by Sorporbear
- Steps for WinDbg by Naveen Srinivasan
Note that downloading the sources in your debugger can be really slow the first time (lots of sources need to be downloaded, the server might be a bit busy, or your internet connection might be slow).
--jeroen