Skip to content

.NET 5 assembly in package dependencies #171

@drivardxrm

Description

@drivardxrm

I'm having issues using the package in an Azure Function project (.Net Core 3.1)

It seems that there is a dependency on a .NET 5 assembly that was introduced since v0.5.2 (see image below)
Microsoft.Extensions.Caching.Memory (>= 5.0.0)

that itself depends on several other .NET 5 assemblies like
Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)

When I reference the latest version of the package, the Azure Function project compiles but triggers an error at startup.

System.Private.CoreLib: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
Value cannot be null. (Parameter 'provider')

It seems to be a known issue that happened with other packages : Azure/azure-functions-core-tools#2304

As a workaround for the moment, I need to revert back to v0.4.21. Then there are no issue and the function app runs smoothly.

Is there any chance that we can lower the version for this dependency to a .NET Core 3.1 compatible version.

Thanks

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions