From a627ca9b720047e633a8fe72003ab9bee31006c5 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 26 Jul 2022 17:20:39 -0700 Subject: Create WixToolset.Heat.nupkg to distribute heat.exe and Heat targets Moves Heat functionality to the "tools" layer and packages it all up in WixToolset.Heat.nupkg for distribution in WiX v4. Completes 6838 --- src/tools/heat/HeatCore.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/tools/heat/HeatCore.cs (limited to 'src/tools/heat/HeatCore.cs') diff --git a/src/tools/heat/HeatCore.cs b/src/tools/heat/HeatCore.cs new file mode 100644 index 00000000..578c4aab --- /dev/null +++ b/src/tools/heat/HeatCore.cs @@ -0,0 +1,45 @@ +// 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. + +namespace WixToolset.Harvesters +{ + using System; + using WixToolset.Extensibility.Services; + using WixToolset.Harvesters.Extensibility; + + /// + /// The WiX Toolset Harvester application core. + /// + internal class HeatCore : IHeatCore + { + /// + /// Instantiates a new HeatCore. + /// + /// The service provider. + /// The extension argument. + public HeatCore(IServiceProvider serviceProvider, string extensionArgument) + { + this.Messaging = serviceProvider.GetService(); + var harvesterCore = new HarvesterCore + { + ExtensionArgument = extensionArgument, + Messaging = this.Messaging, + ParseHelper = serviceProvider.GetService(), + }; + + this.Harvester = new Harvester + { + Core = harvesterCore, + }; + this.Mutator = new Mutator + { + Core = harvesterCore, + }; + } + + public IHarvester Harvester { get; } + + public IMessaging Messaging { get; } + + public IMutator Mutator { get; } + } +} -- cgit v1.2.3-55-g6feb