Closed dev-rowbot closed 7 years ago
I changed the ms build-finder test to expect msbuild to be available in Linux but technically xbuild OR msbuild are still acceptable. This is failing on the CI server due to msbuild not being found.
I'm not sure what the best approach would be in this situation.
Hi, thanks!
You can simulate that the binary exists by using a stub on statSync
like in line 126. Something like that:
var mock = this.sinon.mock(child_process);
mock.expects('spawnSync').withArgs('which', ['msbuild'], {encoding: 'utf8'}).returns({});
@hoffi Thanks for the suggestion. I have added 2 tests for Linux:
This change adds support for MSBuild in Linux as opposed to defaulting to xbuild (which is soon to be deprecated)