Skip to content

Detected package downgrade of System.Configuration.ConfigurationManager with version 6.7.0 #552

Closed
@binick

Description

@binick

After update to version 6.7.0 I'm having this problem:

error NU1605:
      Warning As Error: Detected package downgrade: System.Configuration.ConfigurationManager from 8.0.0 to 6.0.1. Reference the package directly from the project to select a different version.
       My.Project -> Serilog.Sinks.MSSqlServer 6.7.0 -> Microsoft.Data.SqlClient 5.2.1 -> System.Configuration.ConfigurationManager (>= 8.0.0)
       My.Project -> Serilog.Sinks.MSSqlServer 6.7.0 -> System.Configuration.ConfigurationManager (>= 6.0.1)

This is caused by the fact that version 5.2.1 of Microsoft.Data.SqlClient uses at least version 8.0.0 of System.Configuration.ConfigurationManager when compiled with the .NET 8 target framework while the Serilog.Sinks.MSSqlServer package continues to use an older mejor version.

Serilog packages used in the project:

  • Serilog.AspNetCore: 8.0.2
  • Serilog.Settings.Configuration: 8.0.2
  • Serilog.Sinks.MSSqlServer: 6.7.0

Target framework and operating system:

  • .NET 8
    OS: Microsoft Windows 11 Pro - Version 10.0.22631 Build 22631

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions