-
Notifications
You must be signed in to change notification settings - Fork 195
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 'Microsoft.Extensions.Configuration.Abstractions, Version=8.0.0.0' with Microsoft.Azure.WebJobs.Extensions.Storage #2480
Comments
Thanks for informing will check and confirm the same. |
I'm sorry, it's a private project, so I won't be able to share the code. I can provide snippets that may help you debug the cause. I tried to try again on my project, but for some reason, I am facing:
|
I am also having the same issue after upgrading from .Net 6 to .Net 8. Microsoft.Azure.WebJobs.Script: Error building configuration in an external startup class. FileNetWorkFlows.Workflows: Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=8.0.0.0 I even attempted adding that package to the project explicitly. |
@dsgb1987, will it be possible to share your code snippet for @bhagyshricompany since I am facing an error on my end? |
net6.0
v4
Exe
enable
enable
PreserveNewest
PreserveNewest
Never
sample code namespace FunctionApp1
} |
I'm also having the same issue after upgrading from .net core 6.0 to 8.0 in an azure function. Runs locally but fails in Azure with the above error. |
it seems this problem happens only when <Nullable>enable</Nullable> |
It runs fine with the IDEs (Visual Studio or Rider). |
can you upgrade your version. |
You mean me? My version is the latest now. (4.0.5858) I also tried downgrading to your version (4.0.5801) but still the same issue. |
Try to upgeade your asp.net core versions to latest one from 1.2.0 tolatest.Thanks |
Thanks. I was using in-progress model. |
@quellatalo can you share what you changed? |
ContextI was using InProgress Model ( When I changed the target framework to SolutionsI found 2 ways: 1. Disable NullableI tried to investigate by simplify/minimize the project as much as possible. However, this would break the whole project design. So, I need another approach. 2. Change to Worker ModelThere's an article about retiring InProgress Model. So I tried to switch to Worker model to see how it goes... and it just worked, even with Nullable enabled. Considering your initial implementation is on Worker Model already. I think I can't really help you :(. Maybe checking installed versions might help. (There's a new func core tool 4.0.5907 released.) Extra info (not sure if it can help)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="1.3.2" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.17.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.6" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="local.settings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</None>
</ItemGroup>
</Project>
|
In my case, I also switched to the worker model after reading the documentation shared, but for me, the error occurred while debugging with Visual Studio. I will close this for now since I no longer have the original implementation that had the issue. |
Same here for Durable Functions. |
@Wind010 We had the same issue with durable functions. The solution is to remove bin anb obj folders, rebuild and this error will despair. All orchestrators attributes and reference classes should be changed to those from Microsoft.Azure.Functions.Worker.Extensions.DurableTask. Here are our packages: |
New V4 app or existing V3 app migrated to V4: New App in V4
Also verified in dotnet 8 sdk
Case
We are creating Azure function v4 with .net core 8.
Error:
Packages
The text was updated successfully, but these errors were encountered: