Compile the CS file into a DLL file

Source: Internet
Author: User
The compilation method is as follows:
1. Prompt for opening the C command of vs. net
2. Go to the directory
3. Enter the following command:
CSC/T: Library/out: F: \ md5.dll F: \ md5.cs (commonly used)
:

How can we compile the CS file into a DLL and automatically put it in the bin folder of the virtual directory?

Start -------Program------- Microsoft Visual Studio. NET 2005 ------- Visual Studio.. Net tool, click "Visual Studio. the net2005 command prompts ", you will enter Microsoft Visual Studio. NET 2005 Command Prompt window, then we use the doscommand (CD) to enter the directory where the CS file to be compiled into the DLL is located, and then enter the command:

CSC/out: bin \ index. dll/T: Library Index. CS

Press enter to generate a DLL file with the same name as the CS file in the bin directory.

However, if this CS file references another DLL file under the bin directory, such as comman. dll, enter the following command:

CSC/out: bin \ index. dll/R: bin \ comman. dll/T: Library Index. CS

 

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.