Skip to content

[release/11.0] Remove JsonToItemsTaskFactory - #137426

Merged
akoeplinger merged 1 commit into
dotnet:release/11.0from
AR-May:ar-may-runtime-json-factory-backport
Nov 16, 2026
Merged

akoeplinger merged 1 commit into
dotnet:release/11.0from
AR-May:ar-may-runtime-json-factory-backport

Conversation

@AR-May

@AR-May AR-May commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Fixes Issue dotnet/msbuild#15010 (.NET 10 backport).

main PR #134221.

Description

The WebAssembly and Mono workload targets use a custom MSBuild task factory (JsonToItemsTaskFactory) for some of the tasks. Because MSBuild's multithreaded mode (-mt) does not support custom task factories, tasks fail in the MSBuild multithreaded mode.

Since the factory is shipped in TFM-specific workload packs, fixing it in main is not sufficient. The fix must also be backported to older workload versions to ensure that projects targeting older .NET TFMs can be built with newer SDKs without requiring users to opt out of MSBuild multithreaded mode once it is enabled by default.

Customer Impact

  • Customer reported
  • Found internally

WebAssembly and other Mono-based workload builds may fail when MSBuild's multithreaded mode (-mt) is enabled. With this change they build normally. Builds not using MSBuild's multithreaded mode are unaffected either way.

Regression

  • Yes
  • No

Testing

Added unit tests. Tested build locally on a synthetic solution.

Risk

Low. The change is small and affects only two build tasks. The JsonToItemsTaskFactory is removed. It was visible as a public class in the published package. This extensibility point (custom task factories) inside MSBuild is not well known and we expect no one using JsonToItemsTaskFactory.

Backport dotnet#134221, preserving release/11.0 JSON outputs.

Co-authored-by: Rainer Sigwald <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
11 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@AR-May AR-May added the Servicing-consider Issue for next servicing release review label Nov 13, 2026
@AR-May

AR-May commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@AR-May

AR-May commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@ViveliDuCh

Copy link
Copy Markdown
Member

Hi,

the code complete date for 11.0.1 (the December 2026 release) is Monday 16 November. Make sure to merge this PR on that date at the latest, or it won't make it into that release.

As a reminder, if this is a product change, you also need Tactics approval before merging this PR (test-only or infra-only changes don't require Tactics approval).

Happy to help with the merge if needed!

@AR-May AR-May added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 16, 2026
@AR-May

AR-May commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

Failures are unrelated:

Failure Existing issue
MutexTests on Linux, Alpine, macOS and browser-wasm #136325.
SocketAsyncEventArgsTest.Connect_Parallel_FailsOver on Azure Linux arm64 Mono #134107.
AiaTests.AiaAcceptsCertTypesAndIgnoresNonCertTypes on macOS arm64 CoreCLR #107364.

@AR-May

AR-May commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

/ba-g all failures are known, see my comment above.

@akoeplinger
akoeplinger merged commit 008789f into dotnet:release/11.0 Nov 16, 2026
166 of 176 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Build-mono Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants