-
Notifications
You must be signed in to change notification settings - Fork 67
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
"Could not load file or assembly" error with Nuget package when using SDK version >3.0.3 #427
Comments
We're currently running into the same issue. We also the System.IO.Abstractions NuGet package. However for us it seems that the Microsoft.NET.Sdk.Functions 3.0.3 is working, while 3.0.4 onwards introduces the problem. |
Same issue, but getting the error nuget package with the reference will start working when downgrading Microsoft.NET.Sdk.Functions to 3.0.3 |
Probably the same issue as Azure/azure-functions-host#5894. There is also a workaround. |
I get the same problem. |
I was facing the same problem, but only when running Azure Function with Container, the function host doesnt even start, I downgraded |
I had the same issue with referencing System.IO.Abstractions. For us it was being referenced by a second nuget package on which the function depends. Downgrading fixed the problem. We thought it may have been related to the dependency possibly being transient with respect to the function, but even directly adding a reference to the package directly didn't resolve it, so it was quite the head-scratcher. Creating a new azure function pulled in the 3.0.3 version of the SDK, which worked without any other changes - then we realised where we'd gone wrong. |
Is there a way to use |
I got past it! THIS fixed it for me. Add this to a
|
Cross Reference: TestableIO/System.IO.Abstractions#761 |
Should have been resolved with this PR, please reopen if still facing the same issue! |
Thank you so much :)) |
This is still happening btw, should it be reopened? |
Description
When attempting to use the System.IO.Abstractions Nuget package with Azure Functions I receive the following error:
Steps to reproduce:
func start --build
Workaround:
Versions:
Notes:
The text was updated successfully, but these errors were encountered: