Skip to content

.Net: Bug: Packages downgrade (NU1005) with Semantic Kernel v.153 #12212

Closed
@marcominerva

Description

@marcominerva

Describe the bug
When trying to add the Microsoft.SemanticKernel v1.53 NuGet package to a new .NET 9.0 Console application, I get two errors about packages downgrade:

NU1605: Warning As Error: Detected package downgrade: Microsoft.Extensions.Logging.Abstractions from 9.0.5 to 8.0.3. Reference the package directly from the project to select a different version. 
 ConsoleApp1 -> Microsoft.SemanticKernel 1.53.0 -> Microsoft.SemanticKernel.Core 1.53.0 -> Microsoft.SemanticKernel.Abstractions 1.53.0 -> Microsoft.Extensions.AI 9.5.0 -> Microsoft.Extensions.Logging.Abstractions (>= 9.0.5) 
 ConsoleApp1 -> Microsoft.SemanticKernel 1.53.0 -> Microsoft.SemanticKernel.Core 1.53.0 -> Microsoft.SemanticKernel.Abstractions 1.53.0 -> Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
NU1605: Warning As Error: Detected package downgrade: System.Diagnostics.DiagnosticSource from 9.0.5 to 8.0.1. Reference the package directly from the project to select a different version. 
 ConsoleApp1 -> Microsoft.SemanticKernel 1.53.0 -> Microsoft.SemanticKernel.Core 1.53.0 -> Microsoft.SemanticKernel.Abstractions 1.53.0 -> Microsoft.Extensions.AI 9.5.0 -> System.Diagnostics.DiagnosticSource (>= 9.0.5) 
 ConsoleApp1 -> Microsoft.SemanticKernel 1.53.0 -> Microsoft.SemanticKernel.Core 1.53.0 -> Microsoft.SemanticKernel.Abstractions 1.53.0 -> System.Diagnostics.DiagnosticSource (>= 8.0.1)

To Reproduce
Steps to reproduce the behavior:

  1. Create a new .NET 9.0 Console Application
  2. Add the Microsoft.SemanticKernel v1.53 NuGet package
  3. See error

Screenshots

Image

Platform

  • Language: C#
  • Source: NuGet package version 1.53
  • IDE: Visual Studio 2022
  • OS: Windows

Additional context
The issue does not happen with v1.52

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't working

Type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions