Skip to content

How to use a higher version of Microsoft.Extensions.Logging package #4101

@duyang76

Description

@duyang76

The package and version I'm asking about:
I am using version 1.0.556801 of dotnet.interactive package (and polyglot notebook extension).

Question

It seems this version of the notebook and the underlying package use v8.0.0 of the Microsoft.Extensions.Logging packages. When some of package (e.g. snowflake.data 5.1.0) tries to use a higher version of Microsoft.Extensions.Logging package (e.g. 9.0.5), if fails with the error message "Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=9.0.0.0". How can we use a higher version of these packages in a notebook?

I understand that upgrading the package and extension is one approach. But, due to other limitations, we cannot upgrade at this point. Even if we upgrade now, this issue may arise in the future (v9 vs v10, or v10 vs v11/v12). Therefore it would be great if there is a more sustainable solution to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions