Microsoft 365 Agents SDK for .NET. Build multichannel agents for Teams/M365/Copilot Studio with ASP.NET Core hosting, AgentApplication routing, and MSAL-based auth. Triggers: "Microsoft 365 Agents SDK", "Microsoft.Agents", "AddAgentApplicationOptions", "AgentApplication", "AddAgentAspNetAuthentication", "Copilot Studio client", "IAgentHttpAdapter".
SkillScore91Maintained
Automatic
◆AI Engineer pack
Last verified 8/10/2026
What it changes
Passed 21 of 23 test cases with the skill, and 9 of 23 without it.
Without skill39%
With skill91%
Checks it passed that the model alone missed
The code calls client.AskQuestionAsync.
The code calls CopilotClient.ScopeFromSettings.
The code calls builder.AddAgentApplicationOptions().
and 18 more in the full report
13 fixed8 passed either way1 still failing1 broke
Pass-rate lift
+52 pp
Tokens
+55%
Agent turns
0%
Response time
-52%
Model gemini-3.6-flashMeasured 8/10/2026v121 of 23 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 13
Prompt
When setting up WebApplicationBuilder in ASP.NET Core for the Microsoft.Agents SDK, what builder extension method must be called to register the application options before calling AddAgent?
What was checked, without and with the skill
Checked
Without skill
With skill
The code calls builder.AddAgentApplicationOptions().
Missed
Passed
case-06 · gemini-3.6-flash · 8/10/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md275 linessingle file
Microsoft 365 Agents SDK (.NET)
Overview
Build enterprise agents for Microsoft 365, Teams, and Copilot Studio using the Microsoft.Agents SDK with ASP.NET Core hosting, agent routing, and MSAL-based authentication.
Before implementation
Use the microsoft-docs MCP to verify the latest APIs for AddAgent, AgentApplication, and authentication options.
Confirm package versions in NuGet for the Microsoft.Agents.* packages you plan to use.