internal void Compile(CompilerParameters options, string compilerDirectory, string compilerExe, string arguments, ref string outputFile, ref int nativeReturnValue, string trueArgs)
{
string errorName = null;
outputFile = options.TempFiles.AddExtension("out");
string path = Path.Combine(compilerDirectory, compilerExe);
if (!File.Exists(path))
{
throw new InvalidOperationException(SR.GetString("CompilerNotFound", new object[] { path }));
}
string trueCmdLine = null;
if (trueArgs != null)
{
trueCmdLine = "\"" + path + "\" " + trueArgs;
}
nativeReturnValue = Executor.ExecWaitWithCapture(options.SafeUserToken, "\"" + path + "\" " + arguments, Environment.CurrentDirectory, options.TempFiles, ref outputFile, ref errorName, trueCmdLine);
}