Skip to content

[release-notes] .NET Libraries in .NET 11 Preview 6#10457

Merged
jeffhandley merged 4 commits into
release-notes/11.0-preview6from
release-notes/11.0-preview6-libraries
Jul 14, 2026
Merged

[release-notes] .NET Libraries in .NET 11 Preview 6#10457
jeffhandley merged 4 commits into
release-notes/11.0-preview6from
release-notes/11.0-preview6-libraries

Conversation

@danroth27

Copy link
Copy Markdown
Member

Draft .NET Libraries release notes for .NET 11 Preview 6. This PR targets the milestone base branch release-notes/11.0-preview6 (see #10455).

Please review the AI-authored content for accuracy, including any code samples and <!-- TODO --> / <!-- Filtered features --> notes, then mark ready for review. 🤖 Generated with the release-notes skill.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
AsyncValidationAttribute is overridden via the protected IsValidAsync
(and IsValid) members, not GetValidationResultAsync (which is the public
method the framework calls and is not virtual). Verified the corrected
sample compiles and runs against the Preview 6 build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danroth27

Copy link
Copy Markdown
Member Author

While verifying the ASP.NET Core notes against the .NET 11 Preview 6 SDK (#10456), I found the async DataAnnotations sample here used the wrong override and pushed a fix.

AsyncValidationAttribute exposes a public, non-virtual GetValidationResultAsync that the framework calls; the members you override are the protected IsValidAsync (async) and IsValid(object?, ValidationContext) (sync). The original sample (public override … GetValidationResultAsync) doesn't compile. The corrected sample was verified to compile and run (Validator.ValidateObjectAsync reports the async rule).

Comment thread release-notes/11.0/preview/preview6/libraries.md Outdated
- Stream adapters: read from the read-only stream via StreamContent/PostAsync instead of copying HttpContent into it

- Cross-lane vectors: replace nonexistent Concat with ConcatLowerLower/LowerUpper/UpperLower/UpperUpper and drop preexisting Shuffle/ShuffleNative

- Async validation: swap the unique-username example for a VAT registry lookup, layer StringLength and RegularExpression sync rules with the async rule, and add a server-side validation note

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jeffhandley jeffhandley marked this pull request as ready for review July 13, 2026 21:55
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@jeffhandley jeffhandley merged commit 005a31b into release-notes/11.0-preview6 Jul 14, 2026
5 of 7 checks passed
@jeffhandley jeffhandley deleted the release-notes/11.0-preview6-libraries branch July 14, 2026 00:40
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.

6 participants