Skip to content

Commit

Permalink
Don't copy files back from Mac to Windows in the GetFullPaths task.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Sep 7, 2023
1 parent f8266a7 commit 73b3a1c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion msbuild/Xamarin.MacDev.Tasks/Tasks/GetFullPaths.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
Expand All @@ -11,7 +12,7 @@
#nullable enable

namespace Xamarin.MacDev.Tasks {
public class GetFullPaths : XamarinTask, ICancelableTask {
public class GetFullPaths : XamarinTask, ICancelableTask, ITaskCallback {
[Required]
public ITaskItem [] Items { get; set; } = Array.Empty<ITaskItem> ();

Expand Down Expand Up @@ -58,5 +59,11 @@ bool ExecuteLocally ()

return !Log.HasLoggedErrors;
}

public bool ShouldCopyToBuildServer (ITaskItem item) => true;

public bool ShouldCreateOutputFile (ITaskItem item) => false;

public IEnumerable<ITaskItem> GetAdditionalItemsToBeCopied () => Enumerable.Empty<ITaskItem> ();
}
}

0 comments on commit 73b3a1c

Please sign in to comment.