diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:48:54 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:48:54 -0700 |
commit | 1ada7ea116791710f3529c806b8aececd4cfa61d (patch) | |
tree | 8350cea7bfd987a3a5807cc498c193ee055f969c /src/ext/NetFx/wixext/NetFxExtensionData.cs | |
parent | 32112ecd939d36cd14603f09283f825dea4f07c8 (diff) | |
parent | 7bdd5e9159b298e0411afa689a06c44e36e293cd (diff) | |
download | wix-1ada7ea116791710f3529c806b8aececd4cfa61d.tar.gz wix-1ada7ea116791710f3529c806b8aececd4cfa61d.tar.bz2 wix-1ada7ea116791710f3529c806b8aececd4cfa61d.zip |
Merge NetFx.wixext
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 | } | ||