{"action":"created","issue":{"url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/42","repository_url":"https://api.github.com/repos/hoffi/gulp-msbuild","labels_url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/42/comments","events_url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/42/events","html_url":"https://github.com/hoffi/gulp-msbuild/issues/42","id":181208646,"number":42,"title":"remove extra msbuild command line attributes","user":{"login":"sethkane","id":2932427,"avatar_url":"https://avatars.githubusercontent.com/u/2932427?v=3","gravatar_id":"","url":"https://api.github.com/users/sethkane","html_url":"https://github.com/sethkane","followers_url":"https://api.github.com/users/sethkane/followers","following_url":"https://api.github.com/users/sethkane/following{/other_user}","gists_url":"https://api.github.com/users/sethkane/gists{/gist_id}","starred_url":"https://api.github.com/users/sethkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethkane/subscriptions","organizations_url":"https://api.github.com/users/sethkane/orgs","repos_url":"https://api.github.com/users/sethkane/repos","events_url":"https://api.github.com/users/sethkane/events{/privacy}","received_events_url":"https://api.github.com/users/sethkane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hoffi/gulp-msbuild/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-05T16:50:38Z","updated_at":"2016-10-10T14:06:24Z","closed_at":null,"body":"In relations to issue #27 I am finding that the suggestion provided somewhat works.\r\n\r\nWhen I try run this commend via Gulp\r\n\r\n```\r\nreturn gulp.src(config.env.build + '/project.sln')\r\n        .pipe(msbuild({\r\n            properties: {Configuration: 'Debug', DeployOnBuild: true, PublishProfile: \"project\" },\r\n            logCommand: true\r\n            })\r\n        );\r\n```\r\n\r\nThe log command is:\r\n`xbuild /Users/sethk/Documents/workspace/project/project.sln /target:Build /verbosity:normal /toolsversion:4.0 /nologo /property:Configuration=Debug /property:DeployOnBuild=true /property:PublishProfile=project`\r\n\r\nThis does not actually publish the code.\r\n\r\nI tied running this command directly into MSBuild on my PC:\r\n`msbuild project.sln /target:Build /verbosity:normal /toolsversion:4.0 /nologo /property:Configuration=Debug /property:DeployOnBuild=true /property:PublishProfile=project`\r\n\r\nAnd it ERRORS out on the publish.  I then manually modified the string and test again. I removed the target, verbosity, toolversion nologo manulaly and tried again.\r\n`msbuild project.sln /property:Configuration=Debug /property:DeployOnBuild=true /property:PublishProfile=project`\r\n\r\nAnd it worked GREAT from the PC directly using msbuild.\r\n\r\nSo is there a way to remove the extra parameters from the command that is sent via your plugin?\r\n\r\ni.e. I would like see if:\r\n`xbuild /Users/sethk/Documents/workspace/project/project.sln /target:Build /verbosity:normal /toolsversion:4.0 /nologo /property:Configuration=Debug /property:DeployOnBuild=true /property:PublishProfile=project`\r\n\r\nis changed to this works:\r\n`xbuild /Users/sethk/Documents/workspace/project/project.sln /property:Configuration=Debug /property:DeployOnBuild=true /property:PublishProfile=project`\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/comments/252630880","html_url":"https://github.com/hoffi/gulp-msbuild/issues/42#issuecomment-252630880","issue_url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/42","id":252630880,"user":{"login":"sethkane","id":2932427,"avatar_url":"https://avatars.githubusercontent.com/u/2932427?v=3","gravatar_id":"","url":"https://api.github.com/users/sethkane","html_url":"https://github.com/sethkane","followers_url":"https://api.github.com/users/sethkane/followers","following_url":"https://api.github.com/users/sethkane/following{/other_user}","gists_url":"https://api.github.com/users/sethkane/gists{/gist_id}","starred_url":"https://api.github.com/users/sethkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethkane/subscriptions","organizations_url":"https://api.github.com/users/sethkane/orgs","repos_url":"https://api.github.com/users/sethkane/repos","events_url":"https://api.github.com/users/sethkane/events{/privacy}","received_events_url":"https://api.github.com/users/sethkane/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T14:06:23Z","updated_at":"2016-10-10T14:06:23Z","body":"That no longer errors my build out.  Thank you!  It still isn't doing the publish part but I will keep diving into it.\r\n\r\nJust an an FYI. My build script below does the build but no publish.\r\n```\r\ngulp.task('msbuild', () => {\r\n    return gulp.src(config.env.build + '/project.sln')\r\n        .pipe(msbuild({\r\n            properties: {Configuration: 'Debug', DeployOnBuild: true, PublishProfile: \"Project\" },\r\n            logCommand: true,\r\n            nologo: false,\r\n            toolsVersion: undefined \r\n            })\r\n        );\r\n});\r\n```\r\n\r\nOutputs:\r\n` xbuild /Users/sethk/Documents/workspace/project/project.sln /target:Rebuild /verbosity:normal /property:Configuration=Debug /property:DeployOnBuild=true /property:PublishProfile=project`\r\n\r\n\r\nWhen I run this in MSBuild on my PC it works as I want it too.\r\n\r\n```\r\nmsbuild project.sln /target:Rebuild /verbosity:normal /property:Configuration=Debug /property:DeployOnBuild=true /property:PublishProfile=project\r\n```\r\n\r\nThoughts\r\n\r\n"}}
{"actor":{"display_login":"sethkane"}}