private void runtimeCompile()
{
/*
string projectFileName = @"..\windows\PropellerEngine.sln";
ConsoleLogger logger = new ConsoleLogger(LoggerVerbosity.Detailed, new WriteHandler(handleBuildOutput),null,null);
ProjectCollection pc = new ProjectCollection();
pc.RegisterLogger(logger);
Dictionary<string, string> GlobalProperty = new Dictionary<string, string>();
GlobalProperty.Add("Configuration", "EditorDebug");
GlobalProperty.Add("Platform", "x86");
BuildRequestData buildRequest = new BuildRequestData(projectFileName, GlobalProperty, null, new string[] { "Build" }, null);
BuildResult buildResult = BuildManager.DefaultBuildManager.Build(new BuildParameters(pc), buildRequest);
*/
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
//startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
//startInfo.Arguments = "/C call \"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\vcvarsall.bat\" & devenv /edit " + path + " & exit";
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "/C call \"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\vcvarsall.bat\" & cd ../windows & msbuild /property:Configuration=\"EditorDebug\" /target:Engine";
//startInfo.Arguments = "/C call \"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\vcvarsall.bat\" & cd ../windows & msbuild /property:Configuration=\"EditorDebug\" & pause";
startInfo.CreateNoWindow = false;
process.StartInfo = startInfo;
//process.OutputDataReceived += new DataReceivedEventHandler(handleBuildOutput);
process.Start();
process.WaitForExit();
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "/C call \"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\vcvarsall.bat\" & cd ../windows & msbuild /property:Configuration=\"EditorDebug\" /property:TargetName=\"GameRuntime\" /target:Game";
startInfo.CreateNoWindow = false;
process.StartInfo = startInfo;
//process.OutputDataReceived += new DataReceivedEventHandler(handleBuildOutput);
process.Start();
process.WaitForExit();
for(int i = 0; i < editorList.Count; ++i)
{
editorList[i].instance.reloadDLL();
}
}