Answers for "compile c# through cmd"

C#
9

how to make c# program run cmd commands

string strCmdText;
strCmdText= "/C copy /b Image1.jpg + Archive.rar Image2.jpg";
System.Diagnostics.Process.Start("CMD.exe",strCmdText);
Posted by: Guest on May-28-2020
-1

compile c# file in terminal

C:\Windows\Microsoft.NET\Framework\v3.5\bin\csc.exe 
            /t:exe /out:MyApplication.exe MyApplication.cs

//all in one line
//or if that doesn't work try

C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe 
            /t:exe /out:MyApplication.exe MyApplication.cs

//all in one line again
Posted by: Guest on April-28-2021

C# Answers by Framework

Browse Popular Code Answers by Language