Open flcdrg opened 5 years ago
With #108 Cake.Git was updated to LibGit2Sharp 0.26.0 (latest stable release). But I saw that Cake.GitVersioning in the meantime is using LibGit2Sharp 0.27.0-preview-0007, so there might still be issues with using them together.
I wonder if something like ilmerge could be used to inline the LibGit2Sharp assembly for both projects? There's still the matter of LibGit2Sharp.NativeBinaries though, so maybe not. It's a pity Cake addins aren't isolated a bit more from each other.
At the moment they can't be more isolated from each other, .NET Core 3 will likely introduce a component model that'll enable better isolation.
As documented in https://github.com/AArnott/Nerdbank.GitVersioning/issues/288, Cake.Git and Cake.GitVersioning both reference LibGit2Sharp, but if they happen to reference different versions, Cake is unable to compile the build script.
It would be good to upgrade Cake.Git to be on par with Cake.GitVersioning so both latest versions of the addins can be used together.