Skip to content

GitVersionTask does not detect git repo if sln isn't in git root #471

@clairernovotny

Description

@clairernovotny

When trying to add GitVersionTask to a project in the following structure:

.git
\src
\src\Blah.sln
\src\SomeProject\SomeProject.csproj
\src\packages <-- default location for packages is alongside sln

I get the following error if I turn on detailed build logging in the GitVersionTask:

1>MSBUILD : warning : Could not determine assembly version: Path 'C:\Users\Oren\Source\Git\MyRepo\src\' doesn't point at a valid Git repository or workdir.
1>Done executing task "WriteVersionInfoToBuildLog".

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