{"action":"created","issue":{"url":"https://api.github.com/repos/cake-build/cake/issues/172","labels_url":"https://api.github.com/repos/cake-build/cake/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/172/comments","events_url":"https://api.github.com/repos/cake-build/cake/issues/172/events","html_url":"https://github.com/cake-build/cake/issues/172","id":57300637,"number":172,"title":"Query/possible bug with multiple arguments","user":{"login":"DavidR91","id":282737,"avatar_url":"https://avatars.githubusercontent.com/u/282737?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidR91","html_url":"https://github.com/DavidR91","followers_url":"https://api.github.com/users/DavidR91/followers","following_url":"https://api.github.com/users/DavidR91/following{/other_user}","gists_url":"https://api.github.com/users/DavidR91/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidR91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidR91/subscriptions","organizations_url":"https://api.github.com/users/DavidR91/orgs","repos_url":"https://api.github.com/users/DavidR91/repos","events_url":"https://api.github.com/users/DavidR91/events{/privacy}","received_events_url":"https://api.github.com/users/DavidR91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-11T10:49:16Z","updated_at":"2015-02-13T13:07:08Z","closed_at":null,"body":"If I invoke my build with the following arguments:\r\n\r\n`\"$(SolutionDir)cake/cake.exe\" build.cake -verbosity=diagnostic -root=\"$(SolutionDir)\" -scomDllConfiguration=\"$(ConfigurationName)\"`\r\n\r\nI have problems using the argument 'root' since it ends up as a string with the actual value of:\r\n\r\n`C:\\dev\\squaredup-custbuild\\v1\" -scomDllConfiguration=Release`\r\n\r\nWhere C:\\dev\\squaredup-custbuild\\v1 is the actual value I passed into 'root' and the remainder is the other argument.\r\n\r\nWhat is the correct way to pass both of these arguments without ending up with an amalgamation of their values?\r\n\r\nIf the issue here is caused by quotes, what can I do to solve it? (Removing the quotes is not an option: This invocation can use absolute paths which contain spaces) \r\n\r\n**EDIT**:\r\nInterestingly, if I only pass root (-root=\"$(SolutionDir)\") the value is correct, but has an additional quote on the end, leading to 'illegal character in path'. \r\n\r\nIf I omit the last quote, everything actually works fine (!!) (-root=\"$(SolutionDir)). Since I'm invoking cake from VS2013 post-build events I'm not sure if I'm looking at a cake bug here, or a VS bug?\r\n"},"comment":{"url":"https://api.github.com/repos/cake-build/cake/issues/comments/74250640","html_url":"https://github.com/cake-build/cake/issues/172#issuecomment-74250640","issue_url":"https://api.github.com/repos/cake-build/cake/issues/172","id":74250640,"user":{"login":"DavidR91","id":282737,"avatar_url":"https://avatars.githubusercontent.com/u/282737?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidR91","html_url":"https://github.com/DavidR91","followers_url":"https://api.github.com/users/DavidR91/followers","following_url":"https://api.github.com/users/DavidR91/following{/other_user}","gists_url":"https://api.github.com/users/DavidR91/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidR91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidR91/subscriptions","organizations_url":"https://api.github.com/users/DavidR91/orgs","repos_url":"https://api.github.com/users/DavidR91/repos","events_url":"https://api.github.com/users/DavidR91/events{/privacy}","received_events_url":"https://api.github.com/users/DavidR91/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T13:07:08Z","updated_at":"2015-02-13T13:07:08Z","body":"Yeah for the time being rather than adding a space, I've been adding an additional \\ \r\n\r\ni.e.:\r\n\r\n`-squaredUpRoot=&quot;$(SolutionDir)\\&quot;`\r\n\r\nso I end up getting stuff like this:\r\n\r\n`-squaredUpRoot=\"C:\\Program Files (x86)\\Jenkins\\jobs\\Website v2.0\\workspace\\v1\\\\\"`\r\n\r\nThis seems to work, so I'm presuming that's because it ends up evaluating \\\\ to be an escaped \\ before it considers \\\" ? \r\n\r\nBut yeah, seems to be a minor issue since I can workaround it for the time being.\r\n\r\n"}}