Support MSBuild multithreaded builds (-mt) in the MSBuild tasks #4846
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.39) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 254 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #4846"
general
weight: 0.35
greptile-apps[bot]
MSBuild 18.6 added a multithreaded mode (
dotnet build -mt) that runs tasks marked with[MSBuildMultiThreadableTask]inside the build process instead of a separate task host (docs). This PR opts in both MSBuild tasks of the repository.Changes
GeneratePublicApiTaskandGenerateEmbeddedConstantsTaskare marked with[MSBuildMultiThreadableTask].common/MSBuildMultiThreadableTaskAttribute.cs(MSBuild matches it by namespace and name only). The packages keep referencing MSBuild 17.14, so they still load in older Visual Studio and SDK versions, which ignore the attribute.-
GeneratePublicApiTaskhas a new optionalProjectDirectoryparameter, passed by both.targetsfiles; the assembly paths andOutputPathare resolved against it.-
GenerateEmbeddedConstantsTaskalready hadProjectDirectory;OutputPathis now resolved against it too.- Without
ProjectDirectory, behavior is unchanged.Notes for reviewers
global.json(MSBuild 18.12) enables a strict mode under-mt: the process current directory is a temporary sentinel folder, and files written there are reported as warning MSB4287. The new tests build with-mt -warnAsError:MSB4287and call each task with relative paths. Without the path fix, the embedded constants task wrote into the sentinel folder, which also confirmed that MSBuild picks up the internal attribute.global.json.