{"action":"created","issue":{"url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/20","labels_url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/20/comments","events_url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/20/events","html_url":"https://github.com/hoffi/gulp-msbuild/issues/20","id":86518755,"number":20,"title":"gulp-msbuild does not appear to be calling MSBUILD (possible setup issue on my part?)","user":{"login":"davidbarrows","id":7458428,"avatar_url":"https://avatars.githubusercontent.com/u/7458428?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbarrows","html_url":"https://github.com/davidbarrows","followers_url":"https://api.github.com/users/davidbarrows/followers","following_url":"https://api.github.com/users/davidbarrows/following{/other_user}","gists_url":"https://api.github.com/users/davidbarrows/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbarrows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbarrows/subscriptions","organizations_url":"https://api.github.com/users/davidbarrows/orgs","repos_url":"https://api.github.com/users/davidbarrows/repos","events_url":"https://api.github.com/users/davidbarrows/events{/privacy}","received_events_url":"https://api.github.com/users/davidbarrows/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-09T09:07:53Z","updated_at":"2015-06-09T14:02:20Z","closed_at":null,"body":"Hello,\r\n\r\nI inherited a project which uses gulp-msbuild, and I can't seem to get it to work.  The gulp task runs, but it doesn't seem to be actually calling MSBUILD.  I suspect it is a path problem or something.  My gulpfile is in a subdirectory one level down from my Visual Studio solution file, which contains my MSBUILD tasks.  The gulp task looks like this:\r\n\r\ngulp.task('msbuild', function (cb) {\r\n    log('Building Visual Studio solution');\r\n    return gulp.src(pkg.paths.solution)\r\n            .pipe(plug.msbuild({\r\n                targets: ['Clean', 'Build'],\r\n                toolsVersion: 12.0 // Default: 4.0\r\n            }, cb));\r\n\r\n}); \r\n\r\nThe pkg.paths.solution variable points to a property of a JS object in the package.json file; that value looks like this:\r\n\r\n\"./TheSolutionName.sln\",\r\n\r\nThe \"plug.msbuild\" aspect of it uses \r\n\r\nvar plug = require('gulp-load-plugins')();\r\n\r\nThat should not be the issue, because we have many other gulp tasks which use \"gulp-load-plugins\", and they're working fine.\r\n\r\nI can run MSBUILD directly, from the DOS command line (it's a Windows 7 machine), when I'm at the same directory where the .sln file resides; that works.  But when I try to do it from the gulp task, gulp-msbuild doesn't actually seem to be calling it.\r\n\r\nBecause I couldn't find a lot of documentation by googling (trying to find debugging or troubleshooting advice), that suggests most people must be using it without any problems. \r\n\r\nStill, I just wanted to verify,\r\n\r\n- it actually works, is that correct?  People are out there in the field, using it?\r\n\r\n- do you see anything wrong with the format of my path variable that points to the solution?\r\n\r\n- it should behave just like MSBUILD that runs at the command line?  From reading the source code, it just appears to be a wrapper around the MSBUILD command line.  For example, if I specify a verbosity level which should send the MSBUILD output text to the console, then when I call it from gulp-msbuild, it should output that text in the same way that MSBUILD itself would do, if I called it from the command line?\r\n\r\n- can you suggest any debugging tricks so I can try and see why it does not appear to be calling my MSBUILD tasks?  (What I'm trying to do is very simple; I just want to do a \"Clean\" and \"Rebuild\", and maybe also do another task I have which does a one-off transformation of a web.config file.)\r\n\r\nAny help appreciated\r\n\r\nThank you,\r\n\r\nDave\r\n"},"comment":{"url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/comments/110364967","html_url":"https://github.com/hoffi/gulp-msbuild/issues/20#issuecomment-110364967","issue_url":"https://api.github.com/repos/hoffi/gulp-msbuild/issues/20","id":110364967,"user":{"login":"davidbarrows","id":7458428,"avatar_url":"https://avatars.githubusercontent.com/u/7458428?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbarrows","html_url":"https://github.com/davidbarrows","followers_url":"https://api.github.com/users/davidbarrows/followers","following_url":"https://api.github.com/users/davidbarrows/following{/other_user}","gists_url":"https://api.github.com/users/davidbarrows/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbarrows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbarrows/subscriptions","organizations_url":"https://api.github.com/users/davidbarrows/orgs","repos_url":"https://api.github.com/users/davidbarrows/repos","events_url":"https://api.github.com/users/davidbarrows/events{/privacy}","received_events_url":"https://api.github.com/users/davidbarrows/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T14:02:20Z","updated_at":"2015-06-09T14:02:20Z","body":"Hi Stefan, thanks very much for this additional information.  This may help me debug the problem.  I appreciate it.\r\n\r\nBest regards,\r\nDave\r\n"}}