aboutsummaryrefslogtreecommitdiff
path: root/src/ext/PowerShell/wixext/PSExtensionData.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-05-11 08:07:37 -0700
committerRob Mensching <rob@firegiant.com>2021-05-11 08:07:37 -0700
commit5b63db920c207d7115ff8f9ea19f36944766db7a (patch)
tree6f51a90276c18c36c4027784901b9633c8de2567 /src/ext/PowerShell/wixext/PSExtensionData.cs
parent3ae536eb53fe0cc9bbcb1aeb0cd88c89f4f3e2cc (diff)
parent59765d27eb205b7b62a5057cfb631caee97f0af6 (diff)
downloadwix-5b63db920c207d7115ff8f9ea19f36944766db7a.tar.gz
wix-5b63db920c207d7115ff8f9ea19f36944766db7a.tar.bz2
wix-5b63db920c207d7115ff8f9ea19f36944766db7a.zip
Merge PowerShell.wixext
Diffstat (limited to 'src/ext/PowerShell/wixext/PSExtensionData.cs')
-rw-r--r--src/ext/PowerShell/wixext/PSExtensionData.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ext/PowerShell/wixext/PSExtensionData.cs b/src/ext/PowerShell/wixext/PSExtensionData.cs
new file mode 100644
index 00000000..66627942
--- /dev/null
+++ b/src/ext/PowerShell/wixext/PSExtensionData.cs
@@ -0,0 +1,30 @@
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
3namespace WixToolset.PowerShell
4{
5 using WixToolset.Data;
6 using WixToolset.Extensibility;
7
8 /// <summary>
9 /// The WiX Toolset PowerShell Extension.
10 /// </summary>
11 public sealed class PSExtensionData : BaseExtensionData
12 {
13 /// <summary>
14 /// Gets the default culture.
15 /// </summary>
16 /// <value>The default culture.</value>
17 public override string DefaultCulture => "en-US";
18
19 public override Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions)
20 {
21 return Intermediate.Load(typeof(PSExtensionData).Assembly, "WixToolset.PowerShell.powershell.wixlib", symbolDefinitions);
22 }
23
24 public override bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition)
25 {
26 symbolDefinition = null;
27 return symbolDefinition != null;
28 }
29 }
30}