-
-
Save Restuta/2099241 to your computer and use it in GitHub Desktop.
Sublime Build to compile and run C# program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// This build system will build your cs file to exe file and will run it | |
"cmd": ["del ${file/\\.cs/\\.exe/} 2>NUL", "& csc /nologo /out:${file/\\.cs/\\.exe/} $file", "& ${file/\\.cs/\\.exe/}"], | |
"file_regex": "^(...*?)[(]([0-9]*),([0-9]*)[)]", | |
// By default csc is not in your PATH, so add it to your path | |
// or uncomment "path" and check that it has correct value | |
//"path": "C:/Windows/Microsoft.NET/Framework64/v4.0.30319/", | |
"shell": true, // Without this sublime has hard times to parse "&" in out command line | |
"selector": "source.cs" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment