From d74f4970e63e3f0e875c55f9f36d5359fda7c224 Mon Sep 17 00:00:00 2001 From: ancplua Date: Tue, 7 Jul 2026 02:28:12 +0200 Subject: [PATCH] fix(slnx): load Samples.Diagnostics as a project, excluded from solution build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Diagnostics sample was added to ErrorOrX.slnx as loose items (including its .csproj), so IDEs showed the files without project context and no EOE analyzer/generator squiggles appeared. Replace them with a proper entry using so the project loads for IDE analysis but 'dotnet build ErrorOrX.slnx' still skips it (its build fails by design — 7 EOE diagnostics as errors). Verified: solution build green (0 warnings/0 errors); explicit project build still fires EOE003/004/006/007/020/021/024. Co-Authored-By: Claude Fable 5 --- ErrorOrX.slnx | 10 +++++++--- samples/ErrorOrX.Samples.Diagnostics/README.md | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ErrorOrX.slnx b/ErrorOrX.slnx index ab55825..fd2875b 100644 --- a/ErrorOrX.slnx +++ b/ErrorOrX.slnx @@ -20,11 +20,15 @@ - + + + + diff --git a/samples/ErrorOrX.Samples.Diagnostics/README.md b/samples/ErrorOrX.Samples.Diagnostics/README.md index f6fd252..d858f26 100644 --- a/samples/ErrorOrX.Samples.Diagnostics/README.md +++ b/samples/ErrorOrX.Samples.Diagnostics/README.md @@ -1,6 +1,6 @@ # ErrorOrX.Samples.Diagnostics -Realistic-looking API code that deliberately triggers ErrorOrX diagnostics. This project is **excluded from `ErrorOrX.slnx`** — the source-generator-reported errors halt compilation, which is the entire point. Open the project in your IDE for live squiggles, or build it explicitly: +Realistic-looking API code that deliberately triggers ErrorOrX diagnostics. This project is **in `ErrorOrX.slnx` but excluded from the solution build** (``) — the source-generator-reported errors halt compilation, which is the entire point. Open the solution in your IDE for live squiggles, or build the project explicitly: ```bash dotnet build samples/ErrorOrX.Samples.Diagnostics/ErrorOrX.Samples.Diagnostics.csproj