blob: 9cba0f62c58393e6c0d4f975e47e6b803aa7be21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
#if !NETCOREAPP
namespace WixToolset.BuildTasks
{
using System;
using System.Threading;
using System.Threading.Tasks;
using WixToolset.Core.Burn;
using WixToolset.Core.WindowsInstaller;
using WixToolset.Extensibility.Services;
public partial class WixBuild
{
protected override string TaskShortName => "WIX";
protected override Task<int> ExecuteCoreAsync(IWixToolsetCoreServiceProvider coreProvider, string commandLineString, CancellationToken cancellationToken)
{
coreProvider.AddWindowsInstallerBackend()
.AddBundleBackend();
var commandLine = coreProvider.GetService<ICommandLine>();
var command = commandLine.CreateCommand(commandLineString);
return command?.ExecuteAsync(cancellationToken) ?? Task.FromResult(1);
}
}
}
#endif
|