Issue Type: Bug Bug
Affects Versions: current
Assignee: kdsweeney
Components: msbuild
Created: 01/Jul/13 1:30 PM
Description:

Hi there,

I'm using version 1.18 of the MSBuild plugin and I've come across an issue with how it handles quotes for parameters.

I have a matrix project setup where my build axes are specified like so:

Name: VS
Values: 10.0 11.0

Name: Config:
Values: Debug Release

Name: TARGET
Values: "Any CPU"

MSBuild is invoked using the command line arguments:

/p:Configuration="${CONFIG}";Platform="${TARGET}" /p:VisualStudioVersion=${VS}

The resulting command line from the console output is this:

cmd.exe /C C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nr:false /maxcpucount:8 /verbosity:normal "/p:Configuration="Debug";Platform="Any CPU"" /p:VisualStudioVersion=10.0 /p:CONFIG=Debug;VS=10.0;TARGET=Any+CPU;branch=Live Tools\Source\AssetAnalyzer\AssetAnalyzer.sln && exit %%ERRORLEVEL%% from C:\JCI\jobs\AssetAnalyzer-Live\workspace\CONFIG\Debug\TARGET\Any CPU\VS\10.0

which reports:

MSBUILD : error MSB1008: Only one project can be specified.
Switch: Tools\Source\AssetAnalyzer\AssetAnalyzer.sln
For switch syntax, type "MSBuild /help"

I believe the command line should be:

cmd.exe /C C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nr:false /maxcpucount:8 /verbosity:normal "/p:Configuration="Debug";Platform="Any CPU" /p:VisualStudioVersion=10.0 /p:CONFIG=Debug;VS=10.0;TARGET=Any+CPU;branch=Live Tools\Source\AssetAnalyzer\AssetAnalyzer.sln && exit %%ERRORLEVEL%% from C:\JCI\jobs\AssetAnalyzer-Live\workspace\CONFIG\Debug\TARGET\Any CPU\VS\10.0

ie. Platform="Any CPU" instead of Platform="Any CPU""

Can you fix this please?

Regards,
Tom

Environment: Jenkins v1.520
Project: Jenkins
Priority: Blocker Blocker
Reporter: Thomas Fields
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to