Skip to content

Azure Function v3 compatibility issue #454

Open
@aforank

Description

Describe the bug
Installing v8.0.3 in a Azure Function v3 application prevents the app to start due to Microsoft.Extensions.Logging.Abstractions 6.0.0 package.

This is the issue I see on the command line

Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.

image

I believe this happens because Azure Function v3 Runtime does not support Microsoft.Extensions.xxx packages > 3.1.x

To Reproduce
Steps to reproduce the behavior:

  1. Create a function app (v3 .Net Core 3.1) with a single http trigger
  2. Create function and try to get a key from a cache
[FunctionName("Function1")]
        public async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "get", Route = "route/Func1")] HttpRequest req)
        {
            var redisConfiguration = new RedisConfiguration() { ConnectionString = "<Connection String>" };
            var poolManager = new RedisConnectionPoolManager(redisConfiguration);
            var cacheClient = new RedisClient(poolManager, serializer: new NewtonsoftSerializer(), redisConfiguration);
            var db = cacheClient.GetDefaultDatabase();
            var kv = await db.GetAsync<string>("RedisTest_Key1");
       }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions