C # learning Note 2 C # Some of the commands run at the bottom

Source: Internet
Author: User

C # How to run in the DCP:

1. Go to the appropriate directory CD D:\1

2. Input Csc/target:exe 2.cs or Csc/t:exe 2.cs or CSC 2.cs

Methods for referencing external assemblies inside: Csc/r:system.windows.forms.dll 2.cs

referencing multiple external assemblies: Csc/r:system.windows.forms.dll; System.Drawing.dll 2.cs

Compiling multiple source files: csc/r:system.windows.forms.dll; System.Drawing.dll T.cs 2.cs

The response file for C # contains all the instructions to be used during the compilation of the current program.

How to create a response file: Csc/target:exe/out:2.exe *.cs

How to run the response file: csc @2.rsp

The C # compiler has a default response file, typically the default file in and csc.exe in a directory (such as:c:\windows\mincrosoft.net\framework\<version>), the default response file contains a lot of cores. NET, such as various libraries used in web development, LINQ, database access, and so on. When the response file is run, the default response file is automatically referenced. If you want to cancel the default response file (CSC.RSP), you can do this when you run the response file: csc @2.rsp/noconfig

C # learning Note 2 C # Some of the commands run at the bottom

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.