Skip to content

.Net: Bug: C#, error in using Microsoft.SemanticKernel.Agents.AzureAI 1.48.0-preview and above #12070

Closed
@BenoityipMSFT

Description

@BenoityipMSFT

Describe the bug
When using VS2022 C# .Net 9, and add Nuget package Microsoft.SemanticKernel.Agents.AzureAI 1.48.0-preview and above. Calling GetAgentsClient() method will throw a compile error

using 1.47.0-preview does not have this error

Reference to type 'ConnectionProvider' claims it is defined in 'System.ClientModel', but it could not be found

The code we follow is in https://learn.microsoft.com/en-us/semantic-kernel/frameworks/agent/azure-ai-agent?pivots=programming-language-csharp#configuring-the-ai-project-client

Expected behavior
Compile the code successfully

Screenshots
Image

Metadata

Metadata

Assignees

Labels

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

Type

Projects

Status

Sprint: In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions