Publish Wizard with Visual Studio doesn't include native binaries of libgit2
See original GitHub issueThe 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:
- Created 8 years ago
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
…and upvoted!