Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Tasks/CallTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Microsoft.Build.Tasks
/// id validation checks to fail.
/// </remarks>
[RunInMTA]
[MSBuildMultiThreadableTask]
public class CallTarget : TaskExtension
{
#region Properties
Expand Down
8 changes: 6 additions & 2 deletions src/Tasks/MSBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ namespace Microsoft.Build.Tasks
/// RequestBuilder which spawned them.
/// </remarks>
[RunInMTA]
public class MSBuild : TaskExtension
[MSBuildMultiThreadableTask]
public class MSBuild : TaskExtension, IMultiThreadableTask

@danmoseley danmoseley Mar 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Multi is not a word, per guidelines it should be capitalized as IMultithreadableTask I believe

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point, we missed it on the API review. We, unfortunately, already shipped this version.

{
/// <summary>
/// Enum describing the behavior when a project doesn't exist on disk.
Expand Down Expand Up @@ -187,6 +188,9 @@ public string SkipNonexistentProjects
/// </summary>
public string[] TargetAndPropertyListSeparators { get; set; }

/// <inheritdoc />
public TaskEnvironment TaskEnvironment { get; set; }

#endregion

#region ITask Members
Expand Down Expand Up @@ -276,7 +280,7 @@ public override bool Execute()
{
ITaskItem project = Projects[i];

string projectPath = FileUtilities.AttemptToShortenPath(project.ItemSpec);
AbsolutePath projectPath = TaskEnvironment.GetAbsolutePath(FileUtilities.AttemptToShortenPath(project.ItemSpec));
Comment thread
JanProvaznik marked this conversation as resolved.
Outdated

if (StopOnFirstFailure && !success)
{
Expand Down
Loading