Closed siegfriedpammer closed 6 months ago
As a user of this lib, I did never needed it (yet), but only seems fair that is configurable.
Good suggestion, especially since a lot of MS Build functionality depends on having a correct working directory and different scenarios may change that.
This is now implemented and will go out with the 6.0.1 release. Thanks for the suggestion!
Some things like detection of the current .NET version from global.json depend on the working directory of the msbuild call. Currently it is not possible to explicitly set the working directory of the msbuild invocation inside the Buildalyzer build.
Proposed API:
(and also pass it to
class BuildEnvironment
of course)and change
https://github.com/daveaglick/Buildalyzer/blob/5b732a8ce572efbba077dd08871fb609c69f94ce/src/Buildalyzer/ProjectAnalyzer.cs#L167
to
What do you think?