Open AndreZila01 opened 1 year ago
I had the same Exception when using LibGit2Sharp (v0.26.2) in a .NET Framework 4.8 Project running the following code:
var directoryName = Directory.GetCurrentDirectory();
var isValid = Repository.IsValid(directoryName);
It's less a problem with the specific code you're calling and more with the initialization of LibGit2Sharp itself. Changing the platform target from Any CPU to either x64 or x86 is a way to resolve the problem. I didn't test this for other .NET or LibGit2Sharp Versions.
I'm trying create a project to cloned my repository on start. But when i try do this in setup project i receive this message:
The code is simple, but in setup project dont work.