CSC compiling DLL

Source: Internet
Author: User
translated file. CS to generate file.exe:
CSC file. CS
compile file. CS to generate file. DLL:
CSC/Target: library file. CS
compile file. CS and create my.exe:
CSC/out: my.exe file. CS
compile all C # files in the current directory by optimizing and defining the debug symbol. Output is file2.exe:
CSC/define: Debug/optimize/out: file2.exe *. CS
compile all C # files in the current directory to generate the debugging version of file2.dll. No logo or warning is displayed:
CSC/Target: Library/out: file2.dll/warn: 0/nologo/debug *. CS
compile all C # files in the current directory as something. XYZ (a DLL):
CSC/Target: Library/out: something. XYZ *. CS

compile file. CS to generate file. DLL: CSC/Target: library file. CS is the most widely used command. In fact, it can be written as CSC/T: library file. CS . Another method is
CSC/out: mycodebehind. dll/T: Library mycodebehind. CS . You can specify the output file name.
CSC/out: mycodebehind. dll/T: Library mycodebehind. CS mycodebehind2.cs , which is used to load two Cs files to one. DLL file, very useful.

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.