Repository navigation
Migrate UpdateStaticWebAssetEndpoints - #55001
Merged
jankratochvilcz merged 1 commit intoJun 30, 2026
Merged
jankratochvilcz merged 1 commit into
jankratochvilcz merged 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates the UpdateStaticWebAssetEndpoints MSBuild task to MSBuild’s multithreaded execution model by marking it as safe for concurrent execution. This aligns Static Web Assets task execution with the SDK’s broader multi-threading migration work and addresses the linked MSBuild issue by enabling the task to run under the multithreaded scheduler.
Changes:
- Marked
UpdateStaticWebAssetEndpointsas multithread-capable by adding the[MSBuildMultiThreadableTask]attribute.
OvesN
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes dotnet/msbuild#14168
Context
Migrates the
UpdateStaticWebAssetEndpointsMSBuild task to the multithreaded execution model. The task does pure in-memory work (it rewrites endpoint metadata from itsITaskIteminputs), so it touches no process-global state and needs only the capability attribute — notTaskEnvironment.Changes Made
[MSBuildMultiThreadableTask]to theUpdateStaticWebAssetEndpointsclass.IMultiThreadableTaskunimplemented intentionally:Execute()and its call chain (StaticWebAssetEndpoint.FromItemGroup/FromTaskItem/ToTaskItems,StaticWebAssetEndpointOperation.FromTaskItem, and the operation helpers) perform only dictionary/list/array manipulation — noFile/Directory/Environment/Process/Consolecalls and no static mutable state — so no path absolutization orTaskEnvironmentplumbing is required.Testing
Microsoft.NET.Sdk.StaticWebAssets.Tasks.csproj(net11.0 and net472) with the dotnet/msbuildMicrosoft.Build.TaskAuthoring.Analyzerinjected;UpdateStaticWebAssetEndpoints.cscompiles clean and the analyzer reported 0MSBuildTask0001–0005diagnostics for it across both target frameworks.