Skip to content

.NET 10.0.300 May 2026 Updates - #6567

Merged
mthalman merged 5 commits into
release/10.0.3xxfrom
release-pr-10.0.300
May 19, 2026
Merged

mthalman merged 5 commits into
release/10.0.3xxfrom
release-pr-10.0.300

Conversation

@dotnet-bot

Copy link
Copy Markdown
Collaborator

Updates for the .NET 10.0.8 / 10.0.300 May 2026 release.

@dotnet-bot
dotnet-bot requested review from a team as code owners May 12, 2026 17:31
@mthalman

Copy link
Copy Markdown
Member

/backport to release/10.0.4xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.4xx (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

@mthalman backporting to release/10.0.4xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: .NET 10.0.300 Updates
Using index info to reconstruct a base tree...
M	eng/Versions.props
M	global.json
Falling back to patching base and 3-way merge...
Auto-merging eng/Versions.props
CONFLICT (content): Merge conflict in eng/Versions.props
Auto-merging global.json
CONFLICT (content): Merge conflict in global.json
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 .NET 10.0.300 Updates
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@ellahathaway

Copy link
Copy Markdown
Member

See #6566 (comment)

Comment thread eng/Version.Details.xml Resolved
@NikolaMilosavljevic

Copy link
Copy Markdown
Contributor

Failing with package dependency issues - internal changes have not been merged yet: #6570

NikolaMilosavljevic and others added 2 commits May 15, 2026 14:05
The SDK bump to 10.0.300 includes a stricter Roslyn nullable analyzer
that now catches CS8600/CS8604 in the tuple deconstruction from
GetPackageMetadataAsync. Fix by making foundPackages nullable and
moving the null check before the .Count() call.

Co-authored-by: Copilot <[email protected]>
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team May 18, 2026 21:21
@NikolaMilosavljevic

Copy link
Copy Markdown
Contributor

The SDK bump to 10.0.300 introduced a stricter Roslyn nullable analyzer that now catches pre-existing nullable reference issues in src/templating/test/Microsoft.TemplateEngine.TestHelper/PackageManager.cs:

  • CS8600: GetPackageMetadataAsync returns IEnumerable<IPackageSearchMetadata>? (nullable), but the tuple deconstruction on line 316 assigned it to a non-nullable variable.
  • CS8604: .Count() was called on the potentially-null value before the null check.

Fix (commit 4f6d183):

  • Made foundPackages nullable (IEnumerable<IPackageSearchMetadata>?)
  • Moved the null check before the .Count() call
  • Added a debug log message for the null case

This resolves the build failures in all three failing verticals (Windows_x86, Windows_x64, Ubuntu Validation).

@mthalman
mthalman merged commit 440835f into release/10.0.3xx May 19, 2026
7 checks passed
@mthalman
mthalman deleted the release-pr-10.0.300 branch May 19, 2026 13:20
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.

4 participants