Skip to content

Commit cf6386b

Browse files
committed
Use the instance ExecuteAsync method.
1 parent 858eebd commit cf6386b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

msbuild/Xamarin.MacDev.Tasks/Tasks/CreateInstallerPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public override bool Execute ()
9090
var args = GenerateCommandLineCommands ();
9191
var executable = GetExecutable (args, "productbuild", ProductBuildPath);
9292
cancellationTokenSource = new CancellationTokenSource ();
93-
ExecuteAsync (Log, executable, args, workingDirectory: OutputDirectory, cancellationToken: cancellationTokenSource.Token).Wait ();
93+
ExecuteAsync (executable, args, workingDirectory: OutputDirectory, cancellationToken: cancellationTokenSource.Token).Wait ();
9494
return !Log.HasLoggedErrors;
9595
}
9696

msbuild/Xamarin.MacDev.Tasks/Tasks/XamarinTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ protected string GetSdkPlatform (bool isSimulator)
109109
return PlatformFrameworkHelper.GetSdkPlatform (Platform, isSimulator);
110110
}
111111

112-
protected System.Threading.Tasks.Task<Execution> ExecuteAsync (string fileName, IList<string> arguments, Dictionary<string, string?>? environment = null, bool mergeOutput = true, bool showErrorIfFailure = true, string? workingDirectory = null)
112+
protected System.Threading.Tasks.Task<Execution> ExecuteAsync (string fileName, IList<string> arguments, Dictionary<string, string?>? environment = null, bool mergeOutput = true, bool showErrorIfFailure = true, string? workingDirectory = null, CancellationToken? cancellationToken = null)
113113
{
114-
return ExecuteAsync (Log, fileName, arguments, SdkDevPath, environment, mergeOutput, showErrorIfFailure, workingDirectory);
114+
return ExecuteAsync (Log, fileName, arguments, SdkDevPath, environment, mergeOutput, showErrorIfFailure, workingDirectory, cancellationToken);
115115
}
116116

117117
static int executionCounter;

0 commit comments

Comments
 (0)