dittodhole/dotnet-SemVer.Stamp

Weaving fails: "Unable to load DLL 'git2-e0902fb': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

dittodhole opened this issue · 0 comments

1> Fody/SemVer.Git: Starting search for repository in ProjectDir
1>MSBUILD : error : Fody: An unhandled exception occurred:
1>MSBUILD : error : Exception:
1>MSBUILD : error : The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
1>MSBUILD : error : StackTrace:
1>MSBUILD : error : at LibGit2Sharp.Core.NativeMethods.git_buf_free(GitBuf buf)
1>MSBUILD : error : at LibGit2Sharp.Core.Handles.GitBuf.Dispose()
1>MSBUILD : error : at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
1>MSBUILD : error : at LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path)
1>MSBUILD : error : at LibGit2Sharp.Repository.Discover(String startingPath)
1>MSBUILD : error : at SemVer.Fody.ModuleWeaver.GetVersion(String repositoryPath, String patchFormat, String featureFormat, String breakingChangeFormat)
1>MSBUILD : error : at SemVer.Fody.ModuleWeaver.PatchVersionOfAssemblyTheSemVerWay(XElement config, String assemblyFullFileName, String addinDirectoryPath, String solutionPath, String projectPath)
1>MSBUILD : error : at SemVer.Fody.ModuleWeaver.AfterWeaving()
1>MSBUILD : error : at lambda_method(Closure , Object )
1>MSBUILD : error : at InnerWeaver.ExecuteAfterWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 187
1>MSBUILD : error : at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 86
1>MSBUILD : error : Source:
1>MSBUILD : error : SemVer.Git.Fody
1>MSBUILD : error : TargetSite:
1>MSBUILD : error : Void git_buf_free(LibGit2Sharp.Core.Handles.GitBuf)
1>MSBUILD : error : Unable to load DLL 'git2-e0902fb': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
1>MSBUILD : error : StackTrace:
1>MSBUILD : error : at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
1>MSBUILD : error : at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()
1>MSBUILD : error : at LibGit2Sharp.Core.NativeMethods..cctor()
1>MSBUILD : error : Source:
1>MSBUILD : error : SemVer.Git.Fody
1>MSBUILD : error : TargetSite:
1>MSBUILD : error : Int32 git_libgit2_init()
1>MSBUILD : error :
1> Fody: Finished Fody 687ms.