Skip to content

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

Description

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 Rajesh Kamal (@rajeshkamal5050) for notification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETUsage: [Issues, PRs], Target: .NetbugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions