-
Notifications
You must be signed in to change notification settings - Fork 129
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
Update Microsoft.Extensions.DependencyModel to v3 #222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Start to have this error message in Azure Function V3: Could not load file or assembly 'Microsoft.Extensions.DependencyModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. |
Hi @Ted-chiptech - thanks for the heads-up. Can you please let us know which versions you're dealing with (packages, TFMs and runtime), along with a stack trace, in a new issue? May be a regression, but we'll need more info to pin it down. Thanks! |
Hi @nblumhardt, I was using Serilog.Settings.Configuration V3.2.0, The Azure Function runtime is V3, TargetFramework is netcoreapp3.1. then I will get the error above. (The error will show up immediately when starting the project) However, if I roll back the Serilog.Settings.Configuration package to V3.1.0, everything works fine. Since the error is about 'Microsoft.Extensions.DependencyModel', I think it probably has something to do with this PR. Thanks! |
Just checked, the Azure Functions host tied to v2.1.0 of Not sure yet what is the best way to handle this other than to revert this change.. |
Nasty... Since Azure Functions will no doubt be updated someday, another option is to continue supporting it via 3.1.0, for now .... |
@Ted-chiptech , @nblumhardt the source issue.
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
|
Alternatively you could include <ItemGroup>
<FunctionsPreservedDependencies Include="Microsoft.Extensions.DependencyModel.dll" />
</ItemGroup> in your functions |
netstandard2.0
target: the new package usesSystem.Text.Json
instead ofNewtonsoft.Json
to parse.deps.json
files.2.0.4
ofMicrosoft.Extensions.DependencyModel
does.