Skip to content

TaskRunVsTaskFactoryStartNew: retarget to net10.0 - #2146

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/64679-csharp-task-run-vs-task-factory-startnew
Open

TaskRunVsTaskFactoryStartNew: retarget to net10.0#2146
vladimir-pecanac-main wants to merge 1 commit 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.

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