CSC Compile DLL

Source: Internet
Author: User
Translate File.cs to produce File.exe:
CSC File.cs
Compile File.cs to produce File.dll:
Csc/target:library File.cs
Compile File.cs and create My.exe:
Csc/out:my.exe File.cs
Compiles all C # files in the current directory by using the optimize and define the DEBUG symbol. Output is File2.exe:
Csc/define:debug/optimize/out:file2.exe *.cs
Compiles all C # files in the current directory to produce a debug version of File2.dll. Do not display any logos and warnings:
csc/target:library/out:file2.dll/warn:0/nologo/debug *.cs
Compiles all C # files in the current directory into something.xyz (one DLL):
CSC/TARGET:LIBRARY/OUT:SOMETHING.XYZ *.cs

Compile File.cs to produce file.dll:csc/target:library File.cs This is the one we use most of the command, in fact, can be written as a simple csc/t:library File.cs, the other one is
Csc/out:mycodebehind.dll/t:library Mycodebehind.cs, this file name that can specify the output itself.
Csc/out:mycodebehind.dll/t:library Mycodebehind.cs Mycodebehind2.cs, the role of this is to put two CS files into a. dll file, useful oh.

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.