diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-03 16:05:08 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-03 16:05:08 -0700 |
commit | 7bdd5e9159b298e0411afa689a06c44e36e293cd (patch) | |
tree | 57d24ea7fdd8025baf6a822a99b588c9df74a60d /src/ext/NetFx/wixext/NetFxExtensionData.cs | |
parent | ca02e81316d700a3647414f355eab4d2115d6163 (diff) | |
download | wix-7bdd5e9159b298e0411afa689a06c44e36e293cd.tar.gz wix-7bdd5e9159b298e0411afa689a06c44e36e293cd.tar.bz2 wix-7bdd5e9159b298e0411afa689a06c44e36e293cd.zip |
Move NetFx.wixext into ext
Diffstat (limited to 'src/ext/NetFx/wixext/NetFxExtensionData.cs')
-rw-r--r-- | src/ext/NetFx/wixext/NetFxExtensionData.cs | 25 |
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 | |||
3 | namespace 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 | } | ||