From d2771d1e4658212ee614fd45e06bd803bc085aa2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Jun 2026 12:01:10 +0000 Subject: [PATCH] Update CA2266 docs for ref directive --- docs/fundamentals/code-analysis/quality-rules/ca2266.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/fundamentals/code-analysis/quality-rules/ca2266.md b/docs/fundamentals/code-analysis/quality-rules/ca2266.md index 510bee500c6a5..277e8ffa24029 100644 --- a/docs/fundamentals/code-analysis/quality-rules/ca2266.md +++ b/docs/fundamentals/code-analysis/quality-rules/ca2266.md @@ -1,7 +1,7 @@ --- title: "CA2266: File-based program entry point should start with '#!'" description: "Learn about code analysis rule CA2266 - File-based program entry point should start with '#!'" -ms.date: 05/21/2026 +ms.date: 06/02/2026 f1_keywords: - CA2266 helpviewer_keywords: @@ -28,7 +28,7 @@ Your entry point file in a multi-file file-based program doesn't start with a sh ## Rule description -For correct tool identification and direct shell execution support, start the entry point file with a shebang (`#!`) line to clearly distinguish it from files brought in with `#:include`. +For correct tool identification and direct shell execution support, start the entry point file with a shebang (`#!`) line to clearly distinguish it from files brought in with `#:include` or `#:ref`. ## How to fix violations