-
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
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: Conduct thorough, constructive code reviews of pull requests.
When to use: When you need a comprehensive code review that checks for best practices, test coverage, code quality, and potential issues.
Example prompts:
review PR #12345does PR #12345 have adequate test coverage?review this PR focusing on thread safety
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.