-
Notifications
You must be signed in to change notification settings - Fork 663
Description
When GitVersion.MSBuild is installed in a project path which contains spaces, it fails with an error message:
C:\.nuget\packages\gitversion.msbuild\5.6.3\tools\net48/gitversion.exe C:\Program Files (x86)\Jenkins\workspace\satellite-communication-endpoint\argoswindows\ProjectVeil\Veil.Comms -output file -outputfile obj\/gitversion.json
Cannot find the .git directory
C:\.nuget\packages\gitversion.msbuild\5.6.3\tools\GitVersion.MsBuild.targets(9,9): error MSB3073: The command "C:\.nuget\packages\gitversion.msbuild\5.6.3\tools\net48/gitversion.exe C:\Program Files (x86)\Jenkins\workspace\satellite-communication-endpoint\argoswindows\ProjectVeil\Veil.Comms -output file -outputfile obj\/gitversion.json" exited with code 1. [C:\Program Files (x86)\Jenkins\workspace\satellite-communication-endpoint\argoswindows\ProjectVeil\Veil.Comms\Veil.Comms.csproj]
Could also be related to #2534.
Expected Behavior
It shouldn't fail.
Actual Behavior
The build fails when the RunGitVersion task runs.
Possible Fix
Path references inside the GitVersion.MsBuild.targets file should be enclosed in ".
Steps to Reproduce
Use GitVersion.MSBuild in a project under a path whihch contains spaces and attempt to build.
Context
Build projects on a default Windows installation of Jenkins CI. (under C:\Program Files (x86)\Jenkins)
Your Environment
- Version Used: GitVersion.MSBuild 5.6.3
- Operating System and version (Windows 10, Ubuntu 18.04): Windows 10
- Link to your project:
- Link to your CI build (if appropriate):