M
Michael Moreno
Hello,
I am trying to automatically compile all my projects but I am stuck on
something silly: launching csc with the right arguments.
Here is my code
private void CompileProject(string RSPFile)
{
System.Text.StringBuilder sbArgs = new
System.Text.StringBuilder(100);
System.Diagnostics.Process procManager = new
System.Diagnostics.Process();
procManager.StartInfo.FileName = @"csc";
sbArgs.Append(@"@" + RSPFile);
procManager.StartInfo.Arguments = sbArgs.ToString();
procManager.Start();
}
Which I call using
CompileProject(@"C:\Dev\C#\Libraries\SD_StdClasses\SD_StdClasses.rsp");
If I compile myself using hard command line (cmd) it works fine.
Can you help please?
Thanks
I am trying to automatically compile all my projects but I am stuck on
something silly: launching csc with the right arguments.
Here is my code
private void CompileProject(string RSPFile)
{
System.Text.StringBuilder sbArgs = new
System.Text.StringBuilder(100);
System.Diagnostics.Process procManager = new
System.Diagnostics.Process();
procManager.StartInfo.FileName = @"csc";
sbArgs.Append(@"@" + RSPFile);
procManager.StartInfo.Arguments = sbArgs.ToString();
procManager.Start();
}
Which I call using
CompileProject(@"C:\Dev\C#\Libraries\SD_StdClasses\SD_StdClasses.rsp");
If I compile myself using hard command line (cmd) it works fine.
Can you help please?
Thanks