MerrionComputing / EventsSourcing-on-Azure-Functions

A library to demonstrate doing Event Sourcing as a data persistence mechanism for Azure Functions
MIT License
103 stars 20 forks source link

Missing dependency: Microsoft.Extensions.Configuration 5.0.0.0 #49

Closed MerrionComputing closed 3 years ago

MerrionComputing commented 3 years ago

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 commented 3 years ago

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

at builder.AddAppSettingsToConfiguration();

MerrionComputing commented 3 years ago

Aha - https://github.com/Azure/azure-functions-core-tools/issues/2304#issuecomment-735454326

MerrionComputing commented 3 years ago

Rolled back Microsoft,Extension.* to 3.1.1.0

therealkungfury commented 1 year ago

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 `

`