
"The announcement, part of the broader Copilot custom agents' rollout, introduces two purpose-built agents: C# Expert and WinForms Expert in the form of agent instruction Markdown files. The C# Expert agent is designed to guide and enforce modern C# best practices. It respects project conventions, minimises unnecessary code artefacts such as unused interfaces or parameters, and emphasises async/await patterns with proper cancellation and exception handling."
"The WinForms Expert agent focuses on traditional desktop UI development with Windows Forms. It brings expertise in common UI design patterns such as MVVM and MVP, assists with complex event wiring and state management, and adds safeguards to prevent Copilot from inadvertently modifying .Designer.cs files in ways that would break the Visual Studio designer. This protection has been a frequent pain point for developers using generative tooling."
Microsoft and GitHub added two .NET-focused GitHub Copilot custom agents targeting C# and Windows Forms development. The C# Expert enforces modern C# best practices, respects project conventions, reduces unused artefacts, emphasizes async/await with cancellation and exception handling, and supports behavior-driven and integration testing. The WinForms Expert aids desktop UI design, recommends patterns like MVVM/MVP, manages event wiring and state, and prevents modifications to .Designer.cs files that would break the Visual Studio designer. Developers add CSharpExpert.agent.md and WinFormsExpert.agent.md to a .github/agents folder to enable context-aware behaviour in GitHub and selection in VS Code Insiders and experimental Visual Studio builds. Both agents are experimental and Copilot CLI support is planned.
Read at InfoQ
Unable to calculate read time
Collection
[
|
...
]