Skip to content

Add Copilot instructions targeting .NET 9 instead of .NET 8#201

Merged
christiannagel merged 5 commits intomainfrom
copilot/fix-200
Sep 17, 2025
Merged

Add Copilot instructions targeting .NET 9 instead of .NET 8#201
christiannagel merged 5 commits intomainfrom
copilot/fix-200

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Sep 17, 2025

This PR adds comprehensive Copilot instructions to guide development with .NET 9 as the primary target framework instead of .NET 8.

What's Added

A new .copilot-instructions.md file that provides:

  • Framework targeting guidelines specifying .NET 9 as the primary target (net9.0, net9.0-windows, etc.)

  • Platform-specific guidance for all UI frameworks used in the repository:

    • WinUI projects: net9.0-windows10.0.19041.0
    • WPF projects: net9.0-windows
    • Avalonia projects: net9.0 for cross-platform
    • MAUI projects: net9.0 with platform-specific TFMs
    • Uno Platform projects: .NET 9 compatibility guidelines
  • Modern development patterns leveraging .NET 9 features:

    • Primary constructors for cleaner code
    • Collection expressions for better performance
    • File-scoped namespaces for organization
    • Record types for data containers
  • Codebreaker-specific examples showing .NET 9 patterns for dependency injection and ViewModels

Alignment with Repository Guidelines

The instructions extend the existing guidelines.md while maintaining consistency with the repository's focus on:

  • Modern technologies (.NET 9 as the latest stable release)
  • Productivity through built-in .NET features
  • Using released versions for developer accessibility

Migration Guidance

Includes step-by-step guidance for updating existing projects from .NET 8 to .NET 9, covering project files, package references, and testing considerations.

Fixes #200.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Sep 17, 2025

@christiannagel 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Co-authored-by: christiannagel <1908285+christiannagel@users.noreply.github.com>
Copilot AI changed the title [WIP] Create Copilot instructions for the repository targeting .NET 9 Add Copilot instructions targeting .NET 9 instead of .NET 8 Sep 17, 2025
@christiannagel christiannagel marked this pull request as ready for review September 17, 2025 11:10
@christiannagel christiannagel merged commit 4e6cc86 into main Sep 17, 2025
@christiannagel christiannagel deleted the copilot/fix-200 branch September 17, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Copilot instructions for the repository targeting .NET 9

2 participants