Skip to content

Document the IStartupValidator obsoletion in .NET 11 - #56388

Merged
BillWagner merged 7 commits into
mainfrom
copilot/update-obsolete-istartupvalidator
Oct 16, 2026
Merged

BillWagner merged 7 commits into
mainfrom
copilot/update-obsolete-istartupvalidator

Conversation

Copilot AI commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

.NET 11 RC 1 marks IStartupValidator obsolete with warning SYSLIB0066, while retaining the interface and its runtime behavior. New custom validators should use the independent asynchronous contract.

  • Compatibility guidance: Add the .NET 11 Extensions breaking-change article with migration and registration guidance, including that ValidateOnStart() users who don’t implement startup-validator interfaces normally need no change.
  • Diagnostic coverage: Add the SYSLIB0066 article with migration and warning-suppression guidance; cross-link it with the compatibility article.
  • Indexes: Update the .NET 11 compatibility overview and TOC, the obsoletions overview, and the diagnostics TOC.
public sealed class StartupValidator : IAsyncStartupValidator
{
    public Task ValidateAsync(CancellationToken cancellationToken = default) =>
        ValidateConfigurationAsync(cancellationToken);
}

services.AddSingleton<IAsyncStartupValidator, StartupValidator>();

Internal previews

File Preview link
docs/core/compatibility/core-libraries/11/obsolete-apis.md Learn preview
docs/fundamentals/syslib-diagnostics/obsoletions-overview.md Learn preview
docs/fundamentals/syslib-diagnostics/syslib0066.md Learn preview
docs/navigate/tools-diagnostics/toc.yml Learn preview

Build report

Copilot AI balanced review requested due to automatic review settings October 13, 2026 18:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Copilot AI linked an issue Oct 13, 2026 that may be closed by this pull request
1 of 3 tasks
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Copilot AI changed the title [WIP] Update obsolete IStartupValidator to IAsyncStartupValidator Document the IStartupValidator obsoletion in .NET 11 Oct 13, 2026
Copilot AI requested a review from BillWagner October 13, 2026 19:00
@BillWagner
BillWagner marked this pull request as ready for review October 13, 2026 19:20
@BillWagner
BillWagner requested review from a team and gewarren as code owners October 13, 2026 19:20

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM.

@BillWagner
BillWagner enabled auto-merge (squash) October 13, 2026 19:25
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
auto-merge was automatically disabled October 14, 2026 19:32

Head branch was pushed to by a user without write access

Copilot AI requested a review from BillWagner October 14, 2026 19:33
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot please address these comments.

Copilot AI commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

@copilot please address these comments.

Addressed the article feedback: restored the SYSLIB0066 index row, affected API section, and See also link while keeping the misplaced migration paragraph removed. Markdown lint passes; the change is local and uncommitted, so no commit hash is available.

Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@BillWagner
BillWagner merged commit 5fe6e4a into main Oct 16, 2026
13 checks passed
@BillWagner
BillWagner deleted the copilot/update-obsolete-istartupvalidator branch October 16, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: IStartupValidator is obsolete

4 participants