I wonder if there is any option to specify the input file path with csc.exe, like -file <file path> or -path <file path>?
I've googled it, and I found a topic at MSDN about "C# Compiler options", but it didn't have any information about -options, only /options. In my program, I'm going to execute csc.exe with the path to a file as an argument, but it doesn't work with:
Expand|Select|Wrap|Line Numbers
- public void compile()
- {
- Process compile = new Process();
- string Startinfo = "\"" + compileDir + language[compLanguage] + "\"";
- compile.StartInfo.FileName = Startinfo;
- compile.StartInfo.Arguments = path;
- compile.Start();
- }
Any ideas?
Thanks in advance,
Saser