Skip to content

.Net: Version conflict on Azure.AI.OpenAI dependency #13083

@MadonnaSalama

Description

@MadonnaSalama

Problem
When consuming Semantic Kernel together with other libraries that depend on Azure.AI.OpenAI, I get a NuGet version conflict.

Severity Code Description Project File Line
Error (active) NU1107 Version conflict detected for Azure.AI.OpenAI.
Install/reference Azure.AI.OpenAI 2.3.0-beta.2 directly to my project to resolve this issue.

Project1
-> Jumoo.TranslationManager.AI 1.0.0-rc2
-> Azure.AI.OpenAI (>= 2.3.0-beta.2)
-> Project2
-> Microsoft.SemanticKernel 1.64.0
-> Microsoft.SemanticKernel.Connectors.AzureOpenAI 1.64.0
-> Azure.AI.OpenAI (= 2.3.0-beta.1)

So:

Jumoo.TranslationManager.AI requires Azure.AI.OpenAI >= 2.3.0-beta.2

Semantic Kernel 1.64.0 locks to Azure.AI.OpenAI 2.3.0-beta.1

This makes it impossible to resolve dependencies cleanly without downgrading or forcing overrides.

Expected Behavior
Semantic Kernel should support Azure.AI.OpenAI >= 2.3.0-beta.2 (latest), so it can coexist with other libraries that require newer versions.

Environment

Semantic Kernel: 1.64.0

.NET SDK: (NET 8.0.)

OS: Windows 10/11

Additional context
This happens because Microsoft.SemanticKernel.Connectors.AzureOpenAI is pinning Azure.AI.OpenAI strictly to 2.3.0-beta.1. Could this be updated to >= 2.3.0-beta.2 or a floating dependency to reduce conflicts?

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET code

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions