Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 5, 2025

This PR adds a comprehensive .github/copilot-instructions.md file that provides GitHub Copilot coding agents with detailed instructions for working effectively in the xunit-dependency-injection codebase.

What's included

The instructions cover all essential aspects of working with this .NET 9.0 xUnit dependency injection library:

  • Prerequisites: Exact .NET 9.0 SDK (9.0.304+) and runtime (9.0.8+) installation commands with verification steps
  • Build workflow: Complete restore, build, test, and package commands with validated timing expectations
  • Code quality: Formatting requirements using dotnet format with .editorconfig standards
  • Development workflow: VS Code integration, project structure, and key file locations
  • Validation scenarios: Manual testing guidance using the example test projects
  • Troubleshooting: Common issues and solutions for SDK/runtime problems

Validation methodology

Every single command and instruction has been exhaustively tested and validated:

  • ✅ .NET 9.0 installation in clean environment
  • ✅ Complete build workflow (restore → build → test → format → pack)
  • ✅ All 9 example tests pass consistently
  • ✅ Code formatting detects and fixes style issues
  • ✅ Package creation produces valid NuGet packages
  • ✅ Complete workflow timing: ~20-25 seconds total

Key features

The instructions emphasize:

  • Never cancel builds: Explicit timeout warnings with actual timing expectations
  • Manual validation: Testing real dependency injection scenarios using examples
  • Environment setup: Proper PATH and DOTNET_ROOT configuration for .NET 9.0
  • Azure DevOps integration: Documentation of existing CI/CD pipeline

This enables any GitHub Copilot coding agent to immediately start working effectively in the codebase with copy-paste commands that work reliably every time.

Fixes #311.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • canonical-bos01.cdn.snapcraftcontent.com
    • Triggering command: /usr/lib/snapd/snapd (dns block)
  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copy link
Contributor Author

Copilot AI commented Sep 5, 2025

@Arash-Sabet 👋 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.

@github-actions github-actions bot requested a review from Arash-Sabet September 5, 2025 13:02
@Arash-Sabet Arash-Sabet marked this pull request as ready for review September 5, 2025 13:03
Co-authored-by: Arash-Sabet <26050123+Arash-Sabet@users.noreply.github.com>
Copilot AI changed the title [WIP] ✨ Set up Copilot instructions Add comprehensive GitHub Copilot instructions for development workflow Sep 5, 2025
Copilot finished work on behalf of Arash-Sabet September 5, 2025 13:13
@Arash-Sabet Arash-Sabet requested a review from Copilot September 5, 2025 13:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive GitHub Copilot coding agent instructions to help developers work effectively with the xunit-dependency-injection .NET 9.0 library. The instructions provide detailed workflow guidance with validated commands and timing expectations.

  • Adds complete development workflow documentation with prerequisite setup, build commands, and testing procedures
  • Provides validated timing expectations and timeout warnings for all operations
  • Includes comprehensive troubleshooting guidance and project structure documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Arash-Sabet and others added 2 commits September 5, 2025 09:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Arash-Sabet Arash-Sabet merged commit bbacf11 into main Sep 5, 2025
1 check passed
@Arash-Sabet Arash-Sabet deleted the copilot/fix-311 branch September 5, 2025 13:23
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.

✨ Set up Copilot instructions

2 participants