-
Notifications
You must be signed in to change notification settings - Fork 899
Repository.Clone() not working within a Azure Function (Unable to load DLL 'git2-6311e88') #1574
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
This is a dup of #1533. Fundamentally, we do not know if Azure Functions supports native method calls (PInvoke) - and if it does - where or how to load those libraries. If you have information or know how to debug this, that would be helpful. |
This morning I solved the problem. I used an Azure Function v1 (.NET Framework instead of .NET Standard) with the LibGit2Sharp 0.21.0.176. When you include the native binary in the release it is working! |
Thanks for this information, @anthonyhuebers. |
I was running into a similar problem (albeit with a different |
Thanks for the info @helizabethwhite. Closing this since we seem to |
(Oops it was already closed. In that case I’m reopening it accidentally so that I can dramatically close it again.) |
@anthonyhuebers @helizabethwhite I get the same error using Functions Runtime 2.0 |
I think I figured it out. |
I'm trying to clone repositories in an Azure Function to determine if repositories are up and cloneable.
The following code does work in a Console App (.NET Core) project but not in an Azure function project
In an Azure function project i get the following exception message:
With inner exception:
Any idea why it's not working? You can reproduce the problem by checking my git repository: https://github.com/anthonyhuebers/GitClone. I'm using LibGit2Sharp 0.25.0
The text was updated successfully, but these errors were encountered: