Skip to content

A GitVersion NuGet package based on LibGit2Sharp 0.26.x #1660

@FrederickBrier

Description

@FrederickBrier

Please correct me if I get any of this wrong, but the current version of GitVersion, which our team has adopted is based on LibGit2Sharp 0.25.x release. That in turn is uses the NativeBinaries/libgit2 1.0.x version. The libgit2 2.x versions support Windows authentication with TFS, which our project needs. So we upgraded. But now, InstallShield complains when it is building the installer for our app, and it dies when it tries to use the LibGit2Sharp.

I was unable to figure out how to override the project dependency in the .csproj NuGet Reference element, as can be done in Maven and the Java world. So I cloned the GitVersion repo and selected the dependabot branch for LibGit2Sharp-0.26.0 and made the change from LibGit2Sharp.NativeBindaries-2.0.267 branch. After figuring out how to install and build with Cake, getting past the WinHttp proxy issue, installing clipboardy in src/GitVersionTfsTask, and hardcoding a badly generated $version$ value in the GitVersionRubyGem/gitversion.gemspec, it built, but still had a single failed test having to do with in ConfigProviderTests.WarnOnAmbiguousConfigFilesAtTheSameProjectRootDirectory.

If it would have gotten to generating NuGet packages, I would have just pushed the GitVersion artifact to our local NuGet repo, and waited until the project decided to switch to 0.26.0. I would love a new version, alpha would be great, pushed to nuget.org. If not that, please let me know how to get past this last 2 errors (the Ruby $version$) and ambiguous config, or maybe even a Cake target that would build the NuGet package. I haven't used Cake before, so delving into the project's build files is daunting, and feels like a rabbit hole. Thank you.

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