Skip to content

[WIP] Add APIs for multithreaded task environment#12608

Closed
AR-May wants to merge 12 commits into
dotnet:mainfrom
AR-May:new-tasks-api-implementations-2
Closed

[WIP] Add APIs for multithreaded task environment#12608
AR-May wants to merge 12 commits into
dotnet:mainfrom
AR-May:new-tasks-api-implementations-2

Conversation

@AR-May

@AR-May AR-May commented Oct 6, 2025

Copy link
Copy Markdown
Member

Fixes #11828, #11829, #11830

@AR-May AR-May self-assigned this Oct 6, 2025

@JanProvaznik JanProvaznik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

first pass looks OK, I'll look again and definitely needs another reviewer

Comment thread src/Framework/IMultiThreadableTask.cs Outdated
Comment thread src/Framework/MultithreadedTaskEnvironmentDriver.cs
Comment thread src/Framework/IMultiThreadableTask.cs Outdated
Comment thread src/Framework/MSBuildMultiThreadableTaskAttribute.cs Outdated
AR-May added a commit that referenced this pull request Oct 14, 2025
Related to #11828

Changes:
This PR introduces the core APIs that enable thread-safe task execution
in MSBuild's multithreaded execution model. These APIs provide safe
alternatives to global process state operations, allowing
`IMultithreadable` tasks to run concurrently within a single MSBuild
process.

Node:
Adding multithreaded APIs in order to unblock #12617
Extracted APIs from #12608

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Chet Husk <[email protected]>
@AR-May

AR-May commented Dec 1, 2025

Copy link
Copy Markdown
Member Author

Closing in favor for newer PRs.

@AR-May AR-May closed this Dec 1, 2025
JanProvaznik added a commit that referenced this pull request Dec 3, 2025
rework of #12608 after merging
#12651
fixes #11829,
#11830
#12850
#12802
### Context


### Changes Made
1. refactor communicationutilities to support the taskenvironmentdrivers
2. propagate taskenvironment throughout execution
3. enlightening intrinsic tasks

### Testing
simple sample projects using the intrinsictasks build

### Notes
"normal tasks" will be enlightened in subsequent PRs
included the intrinsic tasks in this PR so it's integration testable

---------

Co-authored-by: Copilot <[email protected]>
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.

Design and add new Task API Contract

2 participants