Repository navigation
Conversation
Use task-local environment and project paths while preserving task parameter types. Update shared MSBuild references and their toolset dependencies to the supported 18.7.1 minimum, preserving the .NET 8 workload-task references. Assisted-by: GitHub Copilot CLI:gpt-6-astra Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5fab3b2c-1cfb-4a7f-985d-d133d4a47f99
…ltithreading Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5fab3b2c-1cfb-4a7f-985d-d133d4a47f99
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5fab3b2c-1cfb-4a7f-985d-d133d4a47f99
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @agocke, @dotnet/illink |
Match Roslyn's Csc migration (dotnet/roslyn#84701): leave relative paths in the ILLink command line unchanged, since ToolTask starts the tool in the project directory under -mt. Include the tool's working directory in the invocation cache key instead of the process current directory. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5fab3b2c-1cfb-4a7f-985d-d133d4a47f99
jtschuster
approved these changes
Nov 25, 2026
jtschuster
left a comment
Member
There was a problem hiding this comment.
Cache and ILLink changes look good to me.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5fab3b2c-1cfb-4a7f-985d-d133d4a47f99
This branch has not been deployed
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.
This opts the
ILLinktask into MSBuild's multithreaded execution mode with[MSBuildMultiThreadableTask]. Without the attribute,-mtbuilds run the task out of process in a TaskHost. The task now readsDOTNET_HOST_PATHand resolves paths throughTaskEnvironmentinstead of process-global state. The shared invocation cache behindCachedToolTaskalso takes its environment variables (ILLINK_EXPERIMENTAL_CACHE*,XDG_CACHE_HOME,HOME) and base directory from the task environment.TaskEnvironmentrequires MSBuild 18.7.1, which is the version the VMR root already uses. This bumps the repo'sMicrosoftBuild*Versionproperties from 17.11.48 to 18.7.1 and updates the related toolset dependency versions to match. ThePackageDownloadAndReferenceitems move fromref/net8.0toref/net10.0. Other tasks that share these properties, such as WasmAppBuilder, also pick up the newer reference.Like Roslyn's
Cscmigration (dotnet/roslyn#84701), relative paths in the ILLink command line are passed through unchanged.ToolTaskstarts the tool in the project directory under-mt, so they resolve the same way as before. The invocation cache key now includes that working directory instead of the process current directory.Note
This PR description was drafted with assistance from GitHub Copilot.