Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support spaces in MSBuild configuration #552

Merged
merged 1 commit into from
Dec 4, 2015
Merged

Support spaces in MSBuild configuration #552

merged 1 commit into from
Dec 4, 2015

Conversation

SharpeRAD
Copy link
Contributor

Fixes an error I'm getting in a project that used to build correctly with Cake.

Build

Executing task: Build
Building Ex2007 SP3 from C:/Projects/Exchange.RemoveSection/src/RemoveSection.sln
Executing: C:/Program Files (x86)/MSBuild/14.0/Bin/amd64/MSBuild.exe /m /v:normal /p:Configuration=Ex2007 SP3 /p:Platform="Any CPU" /p:TreatWarningsAsErrors=true /target:Build "C:/Projects/Exchange.RemoveSection/src/RemoveSection.sln"
Microsoft (R) Build Engine version 14.0.23107.0
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1008: Only one project can be specified.
Switch: C:/Projects/Exchange.RemoveSection/src/RemoveSection.sln

For switch syntax, type "MSBuild /help"
An error occured when executing task 'Build'.

@@ -61,8 +61,14 @@ private ProcessArgumentBuilder GetArguments(FilePath solution, MSBuildSettings s
if (!string.IsNullOrWhiteSpace(settings.Configuration))
{
// Add the configuration as a property.
var configuration = settings.Configuration;
builder.Append(string.Concat("/p:Configuration=", configuration));
if (settings.Configuration.Contains(" "))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this check. Instead, always append quoted.

@patriksvensson
Copy link
Member

@SharpeRAD Great. Left a comment for you.

@SharpeRAD
Copy link
Contributor Author

Done 😄

@devlead
Copy link
Member

devlead commented Dec 4, 2015

@SharpeRAD looks good 👍 could you rebase into 1 commit please.

@SharpeRAD
Copy link
Contributor Author

Done 😄

@devlead devlead added the Bug label Dec 4, 2015
@devlead devlead added this to the v0.6.3 milestone Dec 4, 2015
@devlead devlead self-assigned this Dec 4, 2015
@devlead devlead merged commit 89ae50d into cake-build:develop Dec 4, 2015
@devlead
Copy link
Member

devlead commented Dec 4, 2015

@SharpeRAD merged, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants