Skip to content
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

Missing dependency: Microsoft.Extensions.Configuration 5.0.0.0 #49

Closed
MerrionComputing opened this issue Mar 3, 2021 · 4 comments
Closed

Comments

@MerrionComputing
Copy link
Owner

EventSourcingOnAzureFunctions.Common: Could not load file or assembly 'Microsoft.Extensions.Configuration, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
Occurred after update to visual studio

@MerrionComputing
Copy link
Owner Author

In debug it throws on loading:
Microsoft.Extensions.Configuration.Abstractions, Version=5.0.0.0

at
builder.AddAppSettingsToConfiguration();

@MerrionComputing
Copy link
Owner Author

@MerrionComputing
Copy link
Owner Author

Rolled back Microsoft,Extension.* to 3.1.1.0

@therealkungfury
Copy link

I ran into this issue as well with Microsoft.Extensions.Logging.Abstractions.dll v7.0.0 after adding Microsoft.EntityFrameworkCore.SqlServer v7.0.1 to my function project. Long story short this blog post saved most of my hair https://bryanknox.github.io/2022/07/15/functionsskipcleanoutput-and-functionspreserveddependencies.html

Adding this to my .csproj fixed the issue
<ItemGroup> <FunctionsPreservedDependencies Include="Microsoft.Extensions.Logging.Abstractions.dll" /> </ItemGroup>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants