From b7e746bb6395c7bd99aa4ea520e9e1e8eff5c6ca Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Thu, 16 Apr 2026 18:14:08 +0200 Subject: [PATCH] Update instructions.md --- .github/copilot-instructions.md | 4 ---- .github/instructions/instructions.md | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) delete mode 100644 .github/copilot-instructions.md create mode 100644 .github/instructions/instructions.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md deleted file mode 100644 index aaf5be35..00000000 --- a/.github/copilot-instructions.md +++ /dev/null @@ -1,4 +0,0 @@ -# Copilot Instructions - -## Project Guidelines -- All new byte[xx] calls should use using var data = ArrayPool.Shared.Lease(xx); instead of directly allocating byte arrays \ No newline at end of file diff --git a/.github/instructions/instructions.md b/.github/instructions/instructions.md new file mode 100644 index 00000000..82eafc31 --- /dev/null +++ b/.github/instructions/instructions.md @@ -0,0 +1,15 @@ +--- +description: 'Guidelines for this solution' +applyTo: '**/*.csproj, **/*.cs' +--- + +# Multi .NET Framework Targeting + +## Instructions +- The main project "WireMock.Net.Minimal" targets `netstandard2.0` and `net8.0`. Ensure that any new code or dependencies are compatible with these frameworks. + + +# C# Guidelines + +## Instructions +- When a new ByteArray is needed, do not use `var data = new byte[bufferSize];`. Always use `var data = ArrayPool.Shared.Lease(bufferSize);`. \ No newline at end of file