diff options
Diffstat (limited to 'src/wixext/UtilExtensionData.cs')
-rw-r--r-- | src/wixext/UtilExtensionData.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/wixext/UtilExtensionData.cs b/src/wixext/UtilExtensionData.cs new file mode 100644 index 00000000..7eefc238 --- /dev/null +++ b/src/wixext/UtilExtensionData.cs | |||
@@ -0,0 +1,21 @@ | |||
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.Util | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Extensibility; | ||
7 | |||
8 | public sealed class UtilExtensionData : BaseExtensionData | ||
9 | { | ||
10 | public override bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | ||
11 | { | ||
12 | tupleDefinition = UtilTupleDefinitions.ByName(name); | ||
13 | return tupleDefinition != null; | ||
14 | } | ||
15 | |||
16 | public override Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) | ||
17 | { | ||
18 | return Intermediate.Load(typeof(UtilExtensionData).Assembly, "WixToolset.Util.util.wixlib", tupleDefinitions); | ||
19 | } | ||
20 | } | ||
21 | } | ||