Welcome to my Code Snippets

MyCodeSnippets.Space

Compile in C# by Command Line

ReAdABLE Source (What is the ReAdABLE Human Format?)

http://mycodesnippets.space/csharp/compile.red

Command Line

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /out:exefilename.exe SourceFilename.cs Program.cs

VSCode Snippet


    "csharp-compile": {
        "prefix": "csharp-compile",
        "body": [
            "C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\csc.exe /out:${1:classname}.exe ${1:classname}.cs Program.cs\r",
            ""
        ],
        "description": "csharp-compile"
    }
        

If you need to recreate it with Easy Snippet, start with this snippet (don’t forget to add $ in front of variables):


C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\csc.exe /out:${1:classname}.exe ${1:classname}.cs Program.cs