From fb57bdcedd5e8d2ac0107d5004e18eb48ecc43b4 Mon Sep 17 00:00:00 2001 From: Ilona Tomkowicz Date: Wed, 23 Jul 2025 14:13:39 +0200 Subject: [PATCH] Copilot runs dotnet commands with correct dotnet. --- .github/copilot-instructions.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 008b473b18b5..a0b2a2e577fb 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -32,3 +32,11 @@ ## Running tests * To build and run tests in the repo, use the `build.sh` script that is located in each subdirectory within the `src` folder. For example, to run the build with tests in the `src/Http` directory, run `./src/Http/build.sh -test`. + +## .NET Environment + +* Before running any `dotnet` commands in this repository, always activate the locally installed .NET environment first by running the appropriate activation script from the repository root: + * On Windows: `. ./activate.ps1` (from repository root) + * On Linux/Mac: `source activate.sh` (from repository root) +* If not in the repository root, navigate there first or use the full path to the activation script. +* This ensures that the correct version of .NET SDK is used for the repository.