aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/DirectXExtensionData.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2019-02-02 14:07:55 -0600
committerSean Hall <r.sean.hall@gmail.com>2019-02-02 14:17:41 -0600
commit73e6559b809f5f5ae2041d22ec81479df0fe91f9 (patch)
treeb2da1bf50403fbc9fc933f681c34662959edb628 /src/wixext/DirectXExtensionData.cs
parentc7bed5a084324ba94aae5108bac94374ce9dfe39 (diff)
downloadwix-73e6559b809f5f5ae2041d22ec81479df0fe91f9.tar.gz
wix-73e6559b809f5f5ae2041d22ec81479df0fe91f9.tar.bz2
wix-73e6559b809f5f5ae2041d22ec81479df0fe91f9.zip
Integrate into latest v4.
Diffstat (limited to 'src/wixext/DirectXExtensionData.cs')
-rw-r--r--src/wixext/DirectXExtensionData.cs24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/wixext/DirectXExtensionData.cs b/src/wixext/DirectXExtensionData.cs
index 828b087d..0221d104 100644
--- a/src/wixext/DirectXExtensionData.cs
+++ b/src/wixext/DirectXExtensionData.cs
@@ -1,34 +1,24 @@
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. 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 2
3namespace WixToolset.Extensions 3namespace WixToolset.DirectX
4{ 4{
5 using System;
6 using System.Reflection;
7 using WixToolset.Data; 5 using WixToolset.Data;
8 using WixToolset.Extensibility; 6 using WixToolset.Extensibility;
9 7
10 /// <summary> 8 /// <summary>
11 /// The WiX Toolset DirectX Extension. 9 /// The WiX Toolset DirectX Extension.
12 /// </summary> 10 /// </summary>
13 public sealed class DirectXExtensionData : ExtensionData 11 public sealed class DirectXExtensionData : BaseExtensionData
14 { 12 {
15 /// <summary> 13 /// <summary>
16 /// Gets the library associated with this extension. 14 /// Gets the default culture.
17 /// </summary> 15 /// </summary>
18 /// <param name="tableDefinitions">The table definitions to use while loading the library.</param> 16 /// <value>The default culture.</value>
19 /// <returns>The loaded library.</returns> 17 public override string DefaultCulture => "en-US";
20 public override Library GetLibrary(TableDefinitionCollection tableDefinitions)
21 {
22 return DirectXExtensionData.GetExtensionLibrary(tableDefinitions);
23 }
24 18
25 /// <summary> 19 public override Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions)
26 /// Internal mechanism to access the extension's library.
27 /// </summary>
28 /// <returns>Extension's library.</returns>
29 internal static Library GetExtensionLibrary(TableDefinitionCollection tableDefinitions)
30 { 20 {
31 return ExtensionData.LoadLibraryHelper(Assembly.GetExecutingAssembly(), "WixToolset.Extensions.Data.DirectX.wixlib", tableDefinitions); 21 return Intermediate.Load(typeof(DirectXExtensionData).Assembly, "WixToolset.DirectX.directx.wixlib", tupleDefinitions);
32 } 22 }
33 } 23 }
34} 24}