-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Using AI to Work on .NET MAUI
This guide helps you use GitHub Copilot effectively when working on the .NET MAUI repository.
- Custom Agents - Specialized agents for specific MAUI tasks
- Using Copilot with Git - Let Copilot handle your git operations
If you use any of our agents or just Copilot in general to work on an issue:
- End with a message summarizing your experience
- Export the chat session (how-to)
- Attach the JSON to your PR
The .NET MAUI repository includes specialized AI agents designed to help with specific development tasks. These agents are available through GitHub Copilot and provide expert assistance for common workflows.
In VS Code: Custom Agents in VS Code
In GitHub Copilot CLI: GitHub Copilot CLI
Purpose: End-to-end workflow for investigating issues and reviewing/working on PRs.
When to use: When you need to fix an issue (with or without an existing PR), review a PR with independent analysis, or continue work on an in-progress fix.
The PR Agent uses a 5-phase workflow:
- Pre-Flight - Context gathering from issues/PRs
- Tests - Create or verify reproduction tests exist
- Gate - Verify tests catch the issue (mandatory checkpoint)
-
Fix - Explore fix alternatives using
try-fixskill - Report - Create PR or write review report
Example prompts:
fix issue #12345review PR #12345work on issue #12345continue working on #12345
Purpose: Write new UI tests for .NET MAUI with proper syntax, style, and conventions.
When to use: When creating new UI tests or updating existing ones for the TestCases.HostApp and TestCases.Shared.Tests projects.
Example prompts:
write UI test for issue #12345create UI test that verifies Button click updates a Labelwrite UI test for CollectionView item selection
Purpose: Test and validate PR functionality using the Sandbox app with automated deployment and testing.
When to use: When you want to manually verify a fix works on device/simulator, reproduce an issue, or validate PR functionality.
Example prompts:
test PR #12345 on Androidreproduce issue #12345 in Sandboxtest this PR on iOS
GitHub Copilot can handle git operations for you - committing changes, squashing commits, rebasing branches, resolving conflicts, and creating PR descriptions.
See the Using Copilot with Git Guide for detailed examples and prompts.