-
Notifications
You must be signed in to change notification settings - Fork 651
[Bug] The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception #2542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
reverted to GitVersionTask 5.2.4 which is working fine |
On Ubuntu 18.04 the last version of GitVersion which DOES NOT exhibit this error is 5.3.4. Is there a sane explanation for this behavior? |
@paul-michalik, I can't parse that sentence. Are you using the latest version of GitVersion (which currently is |
@asbjornu I am using GitVersion 5.3.4 because this is the latest version which does not fail with |
@asbjornu I can confirm again, that the current version 5.6.10 does not work on Ubuntu 18.04 with my repository. I installed from |
Since 5.3.4 LibGit2Sharp has been bumped from Also, Ubuntu 18.04 is based on Debian 10 "Buster" which is not supported by LibGit2Sharp as per libgit2/libgit2sharp#1725. I have no idea, but the workaround offered in #1852 (comment) may provide useful. |
Describe the bug
Running out of ideas on this issue:
Error is thrown: "The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception." with no further information
Error only shows on Windows Datacenter 2019, but same commit works on another machine (Windows10).
Expected Behavior
pipeline to succeed
Actual Behavior
C:\GitLab-Runner\build_space\comp.Installer>MSBuild comp.Installer.wixproj /p:Configuration=Release /p:Platform=X64
Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 1/14/2021 3:14:19 PM.
Project "C:\GitLab-Runner\build_space\comp.Installer\comp.Installer.wixproj" on node 1 (default targets).
RunGitVersion:
C:\GitLab-Runner\build_space\comp\packages\GitVersion.MsBuild.5.6.3\tools\net48/gitversion.exe C:\GitLab-Runner\build_space\comp
.Installer -output file -outputfile /gitversion.json
The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
C:\GitLab-Runner\build_space\comp\packages\GitVersion.MsBuild.5.6.3\tools\GitVersion.MsBuild.targets(9,9): error MSB3073: The command "C:\GitLab-Runner\build
s\packages\packages\GitVersion.MsBuild.5.6.3\tools\net48/gitversion.exe C:\GitLab-Runner\build_space\comp.Installer -output file
-outputfile /gitversion.json" exited with code 1. [C:\GitLab-Runner\build_space\comp.Installer\comp.Installer.wixproj]
Done Building Project "C:\GitLab-Runner\build_space\comp.Installer\comp.Installer.wixproj" (default targets) -- FAILED.
Build FAILED.
"C:\GitLab-Runner\build_space\comp.Installer\comp.Installer.wixproj" (default target) (1) ->
(RunGitVersion target) ->
C:\GitLab-Runner\build_space\comp\packages\GitVersion.MsBuild.5.6.3\tools\GitVersion.MsBuild.targets(9,9): error MSB3073: The command "C:\GitLab-Runner\bui
lds\packages\packages\GitVersion.MsBuild.5.6.3\tools\net48/gitversion.exe C:\GitLab-Runner\build_space\comp.Installer -output fil
e -outputfile /gitversion.json" exited with code 1. [C:\GitLab-Runner\build_space\comp.Installer\comp.Installer.wixproj]
Your Environment
Windows Server 2019 Datacenter, dedicated to GitLab-runner execution.
Visual studio build tools installed.
The text was updated successfully, but these errors were encountered: