Skip to content

build: silence scaffold/EOL warning noise (CS8669 folder-scoped, NETSDK1138)#339

Merged
Chris-Wolfgang merged 1 commit into
vNextfrom
stack/suppress-scaffold-warnings
Jun 21, 2026
Merged

build: silence scaffold/EOL warning noise (CS8669 folder-scoped, NETSDK1138)#339
Chris-Wolfgang merged 1 commit into
vNextfrom
stack/suppress-scaffold-warnings

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Cuts ~2,142 lines of non-shipping warning noise from the build log. Shipping src/ code is unaffected and stays at 0 warnings under TreatWarningsAsErrors.

CS8669 (nullable annotation outside a #nullable context) — from the AdventureWorks-EF6/EF7 generated models. Added a folder-scoped .editorconfig to each AdventureWorks-EF*/Models/Generated/ setting dotnet_diagnostic.CS8669.severity = none, so only generated scaffold code is suppressed (survives re-scaffold; doesn't touch hand-written code).

NETSDK1138 (net7.0 EOL) — added <CheckEolTargetFramework>false</CheckEolTargetFramework> to the five net7.0-targeting projects. EF Core 7 is intentionally still supported (maintenance tier — same rationale as the existing NU1901/NU1902 suppression).

Verified locally: AdventureWorks-EF7 build → 0 CS8669; Core-EF7 build → 0 NETSDK1138.

Neither warning is promoted to an error — they're non-shipping noise; src/ keeps the strict bar.

…DK1138)

Two non-shipping warning sources dominated the build log (~2,142 lines):

- CS8669 (nullable annotation outside a #nullable context) from the
  AdventureWorks-EF6/EF7 generated models. Scoped a .editorconfig to each
  AdventureWorks-EF*/Models/Generated folder setting CS8669 severity = none,
  so only generated scaffold code is affected (re-scaffolds keep the suppression).
- NETSDK1138 (net7.0 out of support) from the five net7.0-targeting projects.
  Added <CheckEolTargetFramework>false</CheckEolTargetFramework> to each;
  EF Core 7 is intentionally still supported (maintenance tier).

Shipping src/ code keeps TreatWarningsAsErrors and stays at 0 warnings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Chris-Wolfgang Chris-Wolfgang merged commit dece59d into vNext Jun 21, 2026
@Chris-Wolfgang Chris-Wolfgang deleted the stack/suppress-scaffold-warnings branch June 21, 2026 02:06
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.

1 participant