diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-03 09:55:22 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-03 09:55:22 -0700 |
commit | ff659159e041bf6c083e6b7fcb9b726065a9dd73 (patch) | |
tree | ea95bf3d3e031edcee65de33b9e6954178be669c /src/ext/Util/wixext/UtilExtensionData.cs | |
parent | 8a8a25695351ee542f08886a9d0957c78c6af366 (diff) | |
download | wix-ff659159e041bf6c083e6b7fcb9b726065a9dd73.tar.gz wix-ff659159e041bf6c083e6b7fcb9b726065a9dd73.tar.bz2 wix-ff659159e041bf6c083e6b7fcb9b726065a9dd73.zip |
Move Util.wixext into ext
Diffstat (limited to 'src/ext/Util/wixext/UtilExtensionData.cs')
-rw-r--r-- | src/ext/Util/wixext/UtilExtensionData.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ext/Util/wixext/UtilExtensionData.cs b/src/ext/Util/wixext/UtilExtensionData.cs new file mode 100644 index 00000000..d3ca3358 --- /dev/null +++ b/src/ext/Util/wixext/UtilExtensionData.cs | |||
@@ -0,0 +1,23 @@ | |||
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 string DefaultCulture => "en-US"; | ||
11 | |||
12 | public override bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition) | ||
13 | { | ||
14 | symbolDefinition = UtilSymbolDefinitions.ByName(name); | ||
15 | return symbolDefinition != null; | ||
16 | } | ||
17 | |||
18 | public override Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions) | ||
19 | { | ||
20 | return Intermediate.Load(typeof(UtilExtensionData).Assembly, "WixToolset.Util.util.wixlib", symbolDefinitions); | ||
21 | } | ||
22 | } | ||
23 | } | ||