diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-13 10:01:27 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-13 10:13:41 -0700 |
| commit | cd6f466549ba8e4b138da4332b0831ab45ca8a2f (patch) | |
| tree | 0d02b559903966d64ec67fff17d898b78ebb33ba /src/WixToolset.Core.WindowsInstaller/WixToolsetCoreServiceProviderExtensions.cs | |
| parent | c0f1332a0e18e9d506fe80c328548b001dcf93df (diff) | |
| download | wix-cd6f466549ba8e4b138da4332b0831ab45ca8a2f.tar.gz wix-cd6f466549ba8e4b138da4332b0831ab45ca8a2f.tar.bz2 wix-cd6f466549ba8e4b138da4332b0831ab45ca8a2f.zip | |
Implement simplified command and improved backend integration
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/WixToolsetCoreServiceProviderExtensions.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/WixToolsetCoreServiceProviderExtensions.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/WixToolsetCoreServiceProviderExtensions.cs b/src/WixToolset.Core.WindowsInstaller/WixToolsetCoreServiceProviderExtensions.cs new file mode 100644 index 00000000..f3671332 --- /dev/null +++ b/src/WixToolset.Core.WindowsInstaller/WixToolsetCoreServiceProviderExtensions.cs | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | // 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. | ||
| 2 | |||
| 3 | namespace WixToolset.Core.WindowsInstaller | ||
| 4 | { | ||
| 5 | using WixToolset.Extensibility.Services; | ||
| 6 | |||
| 7 | public static class WixToolsetCoreServiceProviderExtensions | ||
| 8 | { | ||
| 9 | public static IWixToolsetCoreServiceProvider AddWindowsInstallerBackend(this IWixToolsetCoreServiceProvider coreProvider) | ||
| 10 | { | ||
| 11 | var extensionManager = coreProvider.GetService<IExtensionManager>(); | ||
| 12 | extensionManager.Add(typeof(WindowsInstallerExtensionFactory).Assembly); | ||
| 13 | |||
| 14 | return coreProvider; | ||
| 15 | } | ||
| 16 | } | ||
| 17 | } | ||
