From cd6f466549ba8e4b138da4332b0831ab45ca8a2f Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 13 Jun 2020 10:01:27 -0700 Subject: Implement simplified command and improved backend integration --- .../WixToolsetCoreServiceProviderExtensions.cs | 17 +++++++++++++++++ src/WixToolset.Core.Burn/WixToolsetStandardBackend.cs | 12 ------------ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 src/WixToolset.Core.Burn/WixToolsetCoreServiceProviderExtensions.cs delete mode 100644 src/WixToolset.Core.Burn/WixToolsetStandardBackend.cs (limited to 'src/WixToolset.Core.Burn') diff --git a/src/WixToolset.Core.Burn/WixToolsetCoreServiceProviderExtensions.cs b/src/WixToolset.Core.Burn/WixToolsetCoreServiceProviderExtensions.cs new file mode 100644 index 00000000..5c3fd449 --- /dev/null +++ b/src/WixToolset.Core.Burn/WixToolsetCoreServiceProviderExtensions.cs @@ -0,0 +1,17 @@ +// 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.Core.Burn +{ + using WixToolset.Extensibility.Services; + + public static class WixToolsetCoreServiceProviderExtensions + { + public static IWixToolsetCoreServiceProvider AddBundleBackend(this IWixToolsetCoreServiceProvider coreProvider) + { + var extensionManager = coreProvider.GetService(); + extensionManager.Add(typeof(BurnExtensionFactory).Assembly); + + return coreProvider; + } + } +} diff --git a/src/WixToolset.Core.Burn/WixToolsetStandardBackend.cs b/src/WixToolset.Core.Burn/WixToolsetStandardBackend.cs deleted file mode 100644 index 5f589d71..00000000 --- a/src/WixToolset.Core.Burn/WixToolsetStandardBackend.cs +++ /dev/null @@ -1,12 +0,0 @@ -// 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.Core.Burn -{ - /// - /// Denotes this assembly contains a backend that is considered - /// a standard part of the WiX Toolset. - /// - public static class WixToolsetStandardBackend - { - } -} -- cgit v1.2.3-55-g6feb