Skip to content

sdk tasks migration to the ThreadSafe attribute, simple tasks, part 2#52555

Merged
SimaTian merged 3 commits intomainfrom
issue-13059-task-migration-2
Feb 2, 2026
Merged

sdk tasks migration to the ThreadSafe attribute, simple tasks, part 2#52555
SimaTian merged 3 commits intomainfrom
issue-13059-task-migration-2

Conversation

@SimaTian
Copy link
Member

Marking tasks as threadsafe. Issue MSBuild-13059
These should be safe enough to mark as they don't use any static state or file manipulation.

Copilot AI review requested due to automatic review settings January 19, 2026 14:36
@SimaTian SimaTian marked this pull request as draft January 19, 2026 14:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Marks a set of SDK build tasks as multi-threadable so MSBuild can schedule them concurrently when appropriate (per MSBuild-13059).

Changes:

  • Add [MSBuildMultiThreadableTask] to multiple tasks in src/Tasks/sdk-tasks to indicate they are thread-safe for parallel execution.
  • No functional logic changes beyond task metadata/attributes.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Tasks/sdk-tasks/ZipFileCreateFromDirectory.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/UpdateRuntimeConfig.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/ReplaceFilesWithSymbolicLinks.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/ReplaceFileContents.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/RemoveAssetFromDepsPackages.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/ProcessRuntimeAnalyzerVersions.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/OverrideAndCreateBundledNETCoreAppPackageVersion.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GetWorkloadSetFeatureBand.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GetRuntimePackRids.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GetLinuxNativeInstallerDependencyVersions.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GetDependencyInfo.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GenerateSdkRuntimeIdentifierChain.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GenerateRuntimeAnalyzersSWR.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GenerateMsiVersionFromFullVersion.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GenerateMSBuildExtensionsSWR.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/GenerateDefaultRuntimeFrameworkVersion.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/ChangeEntryPointLibraryName.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/CalculateTemplateVersions.cs Mark task as MSBuild multi-threadable.
src/Tasks/sdk-tasks/AddMetadataIsPE.cs Mark task as MSBuild multi-threadable.

@SimaTian
Copy link
Member Author

here the Opus analysis success rate was abysmal - like 10%?
anyways, back to the copilot drawing board.

@SimaTian SimaTian marked this pull request as ready for review January 21, 2026 11:06
@SimaTian SimaTian merged commit dadfacc into main Feb 2, 2026
27 checks passed
@SimaTian SimaTian deleted the issue-13059-task-migration-2 branch February 2, 2026 08:55
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.

3 participants