EditPlus Configure C # compilation and running environment

Source: Internet
Author: User

Assuming that the source program file directory is C:\Files, you first build a subdirectory C:\Files\bin to facilitate saving the execution file.

(1) Compiling:
Actions: Add Tools >> Modify "menu text" to "C#compile";

"Command" is "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" (the directory where the CSC command is located);

Parameter is/target:exe/out:$ (filedir) \bin\$ (filenamenoext). exe $ (FileName)

"Starting directory" is $ (filedir). Finally, we have to check the "capture output" so that the result will be displayed in the window below the EditPlus.


Description: The parameters look very complex, if you use a constant instead of a variable in DOS to execute you know what it means. Before running, you must set up a folder bin in the directory where the CS files are located, so that all of the CS files are saved in this directory after compiling the EXE files.

Check "Capture Output", "Output mode" for "Default output mode", "Application", "OK", write a small program to see:


(2) Run:

Actions: Add Tools >> Modify "menu text" to "C#run";

"The Command" is "$ (filenamenoext)";

"Parameter" is empty;

"Start Directory" is $ (filedir) \ Bin

Description: Why the command is "$ (filenamenoext)". Since the compiled EXE file name is the same as the CS filename, we can remove the suffix name when we execute it; why do I need to add a "\ Bin" to the start directory? You understand.


3. Other instructions: If configured to (Capture output), the program appears from the keyboard record the user's input situation, such as "Console.ReadLine ()" And so on, EditPlus will not give input prompts, some just wait ..., You can continue to compile and run other programs only after you have finished running EXE files from the process, and the temporary solution is to not allow EditPlus to capture the output, that is, "capture output" is not checked.

Ctrl 1 try to see ~ ~


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.