Skip to content

Solution with multiple projects and submodules #1121

@nmain

Description

@nmain

Consider the following scenario:

Repository A contains sub-repository B.
Repository A contains solution C and project D.
Repository B contains project E.
Solution C references project D and project E.
Both D and E have GitVersionTask installed to them.

When I run GitVersion commandline, from the location of either D or E, I get version numbers that I want: D gets version numbers from A, and E gets version numbers from B. But when I build C, both D and E get version metadata for A.

Looking into the code, I think I see why this is happening: GitVersionTask uses the SolutionDirectory to make its calculations. Maybe this is intended, but it seems like the ProjectDirectory would make more sense?

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