Skip to content

Discrepencies between GitVersion CommandLine and GitVersionTask #460

@jonathannaim

Description

@jonathannaim

Hello,

I've just upgraded to latest version 3.0.0-beta0003 for both.

When running GitVersionTask during the build I get the following error message on a release branch :

35>MSBUILD : warning : Could not determine assembly version: Path '****' doesn't point at a valid Git repository or workdir.

Whereas when I run GitVersion I get correct information:

C:\Users\Jonathan\Source\Repos\****>gitversion
{
  "Major":0,
  "Minor":1,
  "Patch":0,
  "PreReleaseTag":"beta.1",
  "PreReleaseTagWithDash":"-beta.1",
  "BuildMetaData":2,
  "FullBuildMetaData":"2.Branch.release/0.1.0.Sha.0eabeb44abe4b64d35cb09c569c01f8b93c52a50",
  "MajorMinorPatch":"0.1.0",
  "SemVer":"0.1.0-beta.1",
  "LegacySemVer":"0.1.0-beta1",
  "LegacySemVerPadded":"0.1.0-beta0001",
  "AssemblySemVer":"0.1.0.0",
  "FullSemVer":"0.1.0-beta.1+2",
  "InformationalVersion":"0.1.0-beta.1+2.Branch.release/0.1.0.Sha.0eabeb44abe4b64d35cb09c569c01f8b93c52a50",
  "BranchName":"release/0.1.0",
  "Sha":"0eabeb44abe4b64d35cb09c569c01f8b93c52a50",
  "NuGetVersionV2":"0.1.0-beta0001",
  "NuGetVersion":"0.1.0-beta0001",
  "CommitDate":"2015-06-09"
}

Any idea what's going on? Could it be a setup issue on my side?

Thanks!

Jonathan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions