Wednesday, 28 October 2026

dot net add package - doesn't always work

This command needs to be run in the same directory as your csproj - which may be one level down from you solution file.

Example using MAF:

dotnet add package Microsoft.Agents.AI.Foundry --prerelease

This may not always work, depending on your project (it needs to support adding package references through the add package command).

No comments: