Skip to content

TaskRunVsTaskFactoryStartNew: retarget to net10.0 - #2146

Merged
vladimir-pecanac-main merged 3 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/64679-csharp-task-run-vs-task-factory-startnew
Aug 29, 2026
Merged

TaskRunVsTaskFactoryStartNew: retarget to net10.0#2146
vladimir-pecanac-main merged 3 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/64679-csharp-task-run-vs-task-factory-startnew

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets async-csharp/TaskRunVsTaskFactoryStartNew from net6.0 to net10.0 and bumps the test packages (Microsoft.NET.Test.Sdk 16.11.0 -> 17.14.1, xunit 2.4.1 -> 2.9.3, xunit.runner.visualstudio 2.4.3 -> 3.1.5, coverlet.collector 3.1.0 -> 6.0.4).

Test-only project; no production code changes. All 9 tests pass on SDK 10.0.302 / .NET 10.0.10 — the AttachedToParent/DenyChildAttach and Task<Task> assertions the article is built on still hold.

The newer xunit analyser raises xUnit1031 warnings on the deliberate blocking .Result/.Wait() calls; the blocking is the point of the demonstrations.

@vladimir-pecanac-main
vladimir-pecanac-main merged commit e2a62c0 into CodeMazeBlog:main Aug 29, 2026
3 checks passed
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