diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2010-12-15 19:59:02 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2010-12-15 19:59:02 +0300 |
commit | 9797bda8540c96b7932150ef8090535123bfca8d (patch) | |
tree | 092f394d5a6b8e8b39d4a1ad4e577940089660cf /main/src/addins/VBNetBinding | |
parent | 0fbbb0c21b74c474810bebfb54b9924dd40e15e4 (diff) |
Fix bug 659131 - Build failed: The system cannot find the file specified
Diffstat (limited to 'main/src/addins/VBNetBinding')
-rw-r--r-- | main/src/addins/VBNetBinding/VBBindingCompilerServices.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/main/src/addins/VBNetBinding/VBBindingCompilerServices.cs b/main/src/addins/VBNetBinding/VBBindingCompilerServices.cs index 8080c73f0c..5dced75c07 100644 --- a/main/src/addins/VBNetBinding/VBBindingCompilerServices.cs +++ b/main/src/addins/VBNetBinding/VBBindingCompilerServices.cs @@ -249,9 +249,6 @@ namespace MonoDevelop.VBNetBinding { return res; } - string outstr = String.Concat (compilerName, " @", responseFileName); - - string workingDir = "."; if (configuration.ParentItem != null) workingDir = configuration.ParentItem.BaseDirectory; @@ -260,7 +257,7 @@ namespace MonoDevelop.VBNetBinding { var envVars = configuration.TargetRuntime.GetToolsExecutionEnvironment (configuration.TargetFramework); monitor.Log.WriteLine (Path.GetFileName (compilerName) + " " + string.Join (" ", File.ReadAllLines (responseFileName))); - exitCode = DoCompilation (outstr, tf, workingDir, envVars, ref output); + exitCode = DoCompilation (compilerName, responseFileName, tf, workingDir, envVars, ref output); monitor.Log.WriteLine (output); BuildResult result = ParseOutput (tf, output); @@ -360,14 +357,11 @@ namespace MonoDevelop.VBNetBinding { return null; } - private int DoCompilation (string outstr, TempFileCollection tf, string working_dir, ExecutionEnvironment envVars, ref string output) + private int DoCompilation (string compilerName, string responseFileName, TempFileCollection tf, string working_dir, ExecutionEnvironment envVars, ref string output) { StringWriter outwr = new StringWriter (); - string[] tokens = outstr.Split (' '); try { - outstr = outstr.Substring (tokens[0].Length+1); - - ProcessStartInfo pinfo = new ProcessStartInfo (tokens[0], "\"" + outstr + "\""); + ProcessStartInfo pinfo = new ProcessStartInfo (compilerName, "\"@" + responseFileName + "\""); pinfo.WorkingDirectory = working_dir; envVars.MergeTo (pinfo); |