Skip to content

Commit 798f64b

Browse files
MaxiBoethermpodwysocki
authored andcommitted
Proper escaption of .sln file in command line args (microsoft#582)
The call of msbuild.exe wasn't done with a properly escaped version of slnFile, so paths including whitespaces resulted in an error. This is fixed by adding quotation marks in front of and at the end of the slnFile.
1 parent 27bd4d3 commit 798f64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local-cli/runWindows/utils/msbuildtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MSBuildTools {
4747
return;
4848
}
4949

50-
const cmd = `"${path.join(this.path, 'msbuild.exe')}" ` + [slnFile].concat(args).join(' ');
50+
const cmd = `"${path.join(this.path, 'msbuild.exe')}" ` + ['"' + slnFile + '"'].concat(args).join(' ');
5151
const results = child_process.execSync(cmd).toString().split(EOL);
5252
results.forEach(result => console.log(chalk.white(result)));
5353
}

0 commit comments

Comments
 (0)