Skip to content
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

Azure Function v3 compatibility issue #454

Open
aforank opened this issue Feb 8, 2022 · 1 comment
Open

Azure Function v3 compatibility issue #454

aforank opened this issue Feb 8, 2022 · 1 comment

Comments

@aforank
Copy link

aforank commented Feb 8, 2022

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");
       }
@mario-solytic
Copy link

mario-solytic commented Jul 5, 2023

Any update on this? Having the same issue here, even with the Function v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants