Skip to content

.NET: azd deploy fails: .csproj targets net10.0 but Dockerfile uses SDK 9.0 for HostedAgents samples #2512

@Menghua1

Description

@Menghua1

Description:
During azd deploy for AgentWithHostedMCP, AgentWithTextSearchRag, AgentsInWorkflows, the Docker build fails with the following error:
Image
Image

Steps to Reproduce:

  1. Initialize the project: azd init --template Azure-Samples/ai-foundry-starter-basic.
  2. Initialize AI agent: azd ai agent init -m https://github.com/microsoft/agent-framework/blob/main/dotnet/samples/HostedAgents/AgentWithHostedMCP/agent.yaml
  3. Run azd up.

Environment:

Expected Behavior:
The azd deploy command runs successfully.

@JeffreyCA and @rajeshkamal5050 for notification.

Metadata

Metadata

Labels

.NETbugSomething isn't working

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions