Skip to content

[Bug] MsBuild fails when not in a git repo (GitHub ZIP download) #3242

Closed
@0blu

Description

@0blu

When downloading a repository as a ZIP from GitHub the build process fails, because there is no repository (.git folder) in the zip.

image

I read something about a fallback strategy in the unreleased breaking_changes.md.
Will this fix the issue?

Expected Behavior

There should be an option to default the version to 0.0.0 when no repository is found.

Steps to Reproduce

This bug was tested with HermesProxy but applies to all other projects too.

  1. Use GitHub to download the project as a zip
  2. Try to compile the solution

Your Environment

  • GitVersion.MsBuild: 5.10.3
  • Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions