aboutsummaryrefslogtreecommitdiff
path: root/src/ext/NetFx/wixext/NetFxExtensionData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/NetFx/wixext/NetFxExtensionData.cs')
-rw-r--r--src/ext/NetFx/wixext/NetFxExtensionData.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ext/NetFx/wixext/NetFxExtensionData.cs b/src/ext/NetFx/wixext/NetFxExtensionData.cs
new file mode 100644
index 00000000..0a24ef1e
--- /dev/null
+++ b/src/ext/NetFx/wixext/NetFxExtensionData.cs
@@ -0,0 +1,25 @@
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.Netfx
4{
5 using WixToolset.Data;
6 using WixToolset.Extensibility;
7 using WixToolset.Netfx.Symbols;
8
9 /// <summary>
10 /// The WiX Toolset .NET Framework Extension.
11 /// </summary>
12 public sealed class NetfxExtensionData : BaseExtensionData
13 {
14 public override bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition)
15 {
16 symbolDefinition = (name == NetfxSymbolDefinitionNames.NetFxNativeImage) ? NetfxSymbolDefinitions.NetFxNativeImage : null;
17 return symbolDefinition != null;
18 }
19
20 public override Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions)
21 {
22 return Intermediate.Load(typeof(NetfxExtensionData).Assembly, "WixToolset.Netfx.netfx.wixlib", symbolDefinitions);
23 }
24 }
25}