You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Missing quotes in GitInfo.targets line 370. $(GitExe) rev-list --count "$(_GitLastBump)"..HEAD $([System.IO.Path]::GetDirectoryName("$(GitVersionFile)"))
should be $(GitExe) rev-list --count "$(_GitLastBump)"..HEAD "$([System.IO.Path]::GetDirectoryName("$(GitVersionFile)"))"
Caused this error:
C:\Program Files (x86)\Jenkins\workspace\develop\packages\GitInfo.1.1.31\build\GitInfo.targets(370,3): warning MSB3073: The command ""C:\Program Files\Git\bin\git.exe" rev-list --count "65923a7"..HEAD C:\Program Files (x86)\Jenkins\workspace\develop" exited with code 128. [C:\Program Files (x86)\Jenkins\workspace\develop\project.csproj]
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
C:\Program Files (x86)\Jenkins\workspace\develop\packages\GitInfo.1.1.31\build\GitInfo.targets(586,4): error MSB4186: Invalid static method invocation syntax: "[MSBuild]::Add('$(GitBaseVersionPatch)', '$(GitCommits)')". Input string was not in a correct format. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(a, b)). [C:\Program Files (x86)\Jenkins\workspace\develop\project.csproj]
It worked after adding the quotes manually -.-
The text was updated successfully, but these errors were encountered:
Whenever the GitVersionFile is located at the GitRoot path, the
GetDirectoryName would return an empty string. Previously, that
would have caused the rev-list --count ... HEAD to receive an
empty trailing string, which would have been ignored by git.
As part of c69b7b0, a fix for
#13 when the directory was non-empty (that is, the version file
existed at a subfolder of GitRoot), the basic scenario above
broke, since we'd now be passing "" (two quotes and an empty
string inside), causing the rev-list command to fail and not
populate the GitCommits value.
Missing quotes in GitInfo.targets line 370.
$(GitExe) rev-list --count "$ (_GitLastBump)"..HEAD $([System.IO.Path]::GetDirectoryName("$ (GitVersionFile)"))
$(GitExe) rev-list --count "$ (_GitLastBump)"..HEAD "$([System.IO.Path]::GetDirectoryName("$ (GitVersionFile)"))"
should be
Caused this error:$([FullTypeName]::Method()), e.g. $ ([System.IO.Path]::Combine(
C:\Program Files (x86)\Jenkins\workspace\develop\packages\GitInfo.1.1.31\build\GitInfo.targets(370,3): warning MSB3073: The command ""C:\Program Files\Git\bin\git.exe" rev-list --count "65923a7"..HEAD C:\Program Files (x86)\Jenkins\workspace\develop" exited with code 128. [C:\Program Files (x86)\Jenkins\workspace\develop\project.csproj]
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Build continuing because "ContinueOnError" on the task "Exec" is set to "true".
C:\Program Files (x86)\Jenkins\workspace\develop\packages\GitInfo.1.1.31\build\GitInfo.targets(586,4): error MSB4186: Invalid static method invocation syntax: "[MSBuild]::Add('$(GitBaseVersionPatch)', '$(GitCommits)')". Input string was not in a correct format. Static method invocation should be of the form:
a
,b
)). [C:\Program Files (x86)\Jenkins\workspace\develop\project.csproj]It worked after adding the quotes manually -.-
The text was updated successfully, but these errors were encountered: