-
Notifications
You must be signed in to change notification settings - Fork 662
Description
Context
We're using the gitversion tfs task, gitversion with multiple solutions in 1 repository. Our repository tree is the following:
Root
- Solution A
- gitversion.yml
- Project A1
- Program.cs
- Solution B
- gitversion.yml
We have a separate build for each solution. Since the build uses the root of our repo as working directory we have to setup most build steps to look in the solution dir. For example, when building we provide 'Solution A/**/*.csproj'.
Since this isn't supported at the moment by the gitversion task, gitversion isn't able to find our gitversion file.
Desired behavior
At the moment the GitVersion task calls GitVersion.exe with the path to the working directory of the build. It would be great if we could add a parameter 'Target path' that allows users to change the path to a deeper level. The gitversion would use this path and combine it with the working directory path changing:
C:\Agent-1\_work\_tasks\GitVersion_e5983830-3f75-11e5-82ed-81492570a08e\3.6.5\GitVersion.exe C:\Agent-1\_work\16\s /output buildserver /nofetch
to
C:\Agent-1\_work\_tasks\GitVersion_e5983830-3f75-11e5-82ed-81492570a08e\3.6.5\GitVersion.exe C:\Agent-1\_work\16\s\Solution A /output buildserver /nofetch
I'm willing to write a PR if you agree with this enhancement