Thursday, June 7, 2012

Compile a .cs file which is located in different folder of the disk from another .cs program


ProcessStartInfo info = new ProcessStartInfo(@"C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe");
info.Arguments = @" /out:C:\ss\Class1.dll C:\ss\Class1.cs";
info.UseShellExecute = false;
Process.Start(info);

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

Ubuntu 26.10: What’s New in “Stonking Stingray”?

  Ubuntu 26.10: What’s New in “Stonking Stingray”? Ubuntu 26.10, codenamed Stonking Stingray , is shaping up as a solid interim release focu...