One-step debugging of. NET Framework source code

Source: Internet
Author: User

 

1. Release of. NET Framework source code.

 An article published by scottgu has detailed the open-source libraries. Here, I want to talk about the. NET Framework source code is published under the MS-RL (Microsoft reference license) license. Here is an article about. NET Framework source code example.

Netmassdownloader page: http://www.codeplex.com/NetMassDownloader/Release/ProjectReleases.aspx? Releaseid = 10592

1) decompress the downloaded package to a folder, such as C:/1. Create a folder 2 under the C-drive root directory to save the downloaded source code.
2) at the doscommand prompt (dossystem), set the current directory to the folder where the download tool is located. (You don't need to say that you don't need to use common doscommands? I won't go to Baidu to search for how to use it .)
3) enter the command "netmassdownloader-d c:/Windows/Microsoft. NET/framework/v2.0.50727-Output C:/2" to download the source code of the. net2.0 framework. (I downloaded the source code of. net2.0. The program prompts that the file was not found on the server .)
Note: If the source code of the. net2.0 framework cannot be downloaded, run the "netmassdownloader-d" C:/program files/reference assemblies/Microsoft/framework/v3.5 "command to perform step 3.
Or save the following files and run the BAT file.

 

Netmassdownloader.exe-d c:/Windows/Microsoft. NET/framework/v2.0.50727-o d:/referencesource-fo
Netmassdownloader.exe-d c:/Windows/Microsoft. net/framework/V3.0/Windows Communication Foundation-o d:/referencesource-FO netmassdownloader.exe-d c:/Windows/Microsoft. net/framework/V3.0/Windows Workflow Foundation-o d:/referencesource-fo
Netmassdownloader.exe-d c:/Windows/Microsoft. NET/framework/V3.0/WPF-o d:/referencesource-fo
Netmassdownloader.exe-d c:/Windows/Microsoft. NET/framework/v3.5 Workflow Foundation-o d:/referencesource-fo
Pause


 

Second, how to perform one-step debugging on. NET Framework source code.

 

Here, I mainly focus on single-step debugging of. NET Framework source code in the vs2005ide environment. First, download a. net mass downloader program on the codeplex website. This program is mainly used to download the source code from the Microsoft symbol server to the local hard disk. Note: you must first download the. NET framework3.5, 3.0, and 2.0 installation packages before downloading them. Otherwise, you cannot download any source code. Open the vs2005 Command Prompt window and enter the command: C:/netmassdownloader> netmassdownloader-d "C:/program files/reference assemblies/Microsoft/framework/v3.5"-d "C: /program files/reference assemblies/Microsoft/framework/V3.0 "-d" C:/Windows/microsoft.net/framework/v2.0.50727 "-Output C:/referencesource. This will take you a long time to download. Then it downloads the source code one by one to the referencesource folder on drive C. Open vs2005 and choose tools> Options> debugging> General, remove the check boxes "enable source server support" and "requires that the source file exactly match the original version.

Step 3: Enter C:/referencesource In the debugging source file of the common properties of the Project Solution Properties.. The Registry has been changed. The operation is as follows: Open the registry and there is a key named source directories under HKEY_LOCAL_MACHINE/software/Microsoft/visualstudio/8.0, add your local source code path to the beginning and end with a semicolon.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.