# msbuild command line argument doesn`t work correctly

XMLWordPrintable

#### Details

• Type: Bug
• Status: Open
• Priority: Critical
• Resolution: Unresolved
• Component/s:
• Labels:
None
• Similar Issues:

#### Description

I wanted to add a Command Line parameter ("Release|x64") via msbuild plugin.
But I had an error in console output:
'x64' is not recognized as an internal or external command.

I tried to start the build from server (cmd) and it works. I think, that this plugin doesn`t support (").
This symbol - (") - needs to be in command line. But in Jenkins console, I didn`t see - (").

For example:
Jenkins console: "C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" /Build Release|x64
cmd on server console: "C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" /Build "Release|x64"

How can I add "Release|x64" parameter via msbuild plugin correctly?
Thanks.

#### Activity

Hide
Joan Bruguera added a comment - - edited

Probably related to JENKINS-22344.

I encountered the same issue. It appears that the contents of the box are not escaped correctly or at least require extra escaping for some reason.

I could work around this bug by adding a backslash before the double quotes, e.g. writing

`\"`

`"`
Show
Joan Bruguera added a comment - - edited Probably related to JENKINS-22344 . I encountered the same issue. It appears that the contents of the box are not escaped correctly or at least require extra escaping for some reason. I could work around this bug by adding a backslash before the double quotes, e.g. writing \" instead of "

#### People

Assignee:
kdsweeney
Reporter:
Serg Pr