question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publish Wizard with Visual Studio doesn't include native binaries of libgit2

See original GitHub issue

Related to : http://stackoverflow.com/questions/31113817/publish-wizard-with-visual-studio-doesnt-include-native-binaries-of-libgit2

The Publish Wizard to create a ClickOnce Application seems to not copy the NativeBinaries directory with libgit2 .dll files x86 and amd64.

After install a application on another computer than my dev environment I have this error :

System.DllNotFoundException: Impossible de charger la DLL 'git2-e0902fb': Le   module spécifié est introuvable. (Exception de HRESULT : 0x8007007E)
   à LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
   à LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()
   à LibGit2Sharp.Core.NativeMethods..cctor()

LibGit2Sharp.dll.deploy is correctly copied in the Application Files directory at the end of the publish process.

IDE : Visual Studio 2013 Express for Windows Desktop.

LibGit2Sharp.0.21.0.176 is installed with NuGet.

Thanks.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gaeljcommented, Mar 1, 2018

FYI, if anyone wants to do it with ClickOnce, you have to manually copy the correct DLL in your project folder, then in the file properties (those within visual studio) set build action to content. Finally in thje project properties, publish, application files, you will now be able to include the DLL manually in the build. I tried on my x64 project with the x64 DLL and it works. Building for AnyCpu might be a little trickyer.

0reactions
nulltokencommented, Jun 30, 2015

…and upvoted!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publish Wizard with Visual Studio doesn't include native ...
The reason the native binary files aren't included in the ClickOnce manifest is that their Build Action is set to None by the...
Read more >
libgit2/libgit2sharp.nativebinaries
This script builds Windows libgit2 binaries. It requires Visual Studio 2019 to run. ... Multiple architecture parameters can be specified to build multiple ......
Read more >
Publish wizard (Office development in Visual Studio)
Learn how you can Use the Publish Wizard to copy solution files to a specified location, create the manifest files, and create a...
Read more >
Publish ClickOnce application using Publish wizard
Learn about using the Publish Wizard to make your ClickOnce application available to users, including which publishing properties to use.
Read more >
Release notes – TortoiseGit – Windows Shell Interface to Git
Release notes. = Release 2.14.0.1 = Released: 2023-04-15 == Bug Fixes == * Fixed issue #3997: TortoiseGit crashes with "libgit2 returned: failed to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found