Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Add support for spaces in the solution filename and parameter values …
Browse files Browse the repository at this point in the history
…without the need to quote them in the build script.
  • Loading branch information
mterwoord committed Jan 22, 2011
1 parent 518faec commit 003e8b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Phantom.Core/Builtins/MSBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ protected override void Execute() {
throw new InvalidOperationException("Please specify the 'file' property for calls to msbuild.");
}

string args = file + " /p:Configuration=" + configuration + " /t:" + string.Join(";", targets) + " /v:" + verbosity;
string args = "\"" + file + "\" /p:Configuration=" + configuration + " /t:" + string.Join(";", targets) + " /v:" + verbosity;

foreach (DictionaryEntry entry in properties) {
args += " /p:" + entry.Key + "=" + entry.Value;
args += " /p:" + entry.Key + "=\"" + entry.Value + "\"";
}

Execute(args);
Expand Down

0 comments on commit 003e8b4

Please sign in to comment.