diff options
Diffstat (limited to 'src/wixext/NetFxExtensionData.cs')
| -rw-r--r-- | src/wixext/NetFxExtensionData.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/wixext/NetFxExtensionData.cs b/src/wixext/NetFxExtensionData.cs new file mode 100644 index 00000000..b68741fd --- /dev/null +++ b/src/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.Tuples; | ||
| 8 | |||
| 9 | /// <summary> | ||
| 10 | /// The WiX Toolset .NET Framework Extension. | ||
| 11 | /// </summary> | ||
| 12 | public sealed class NetfxExtensionData : BaseExtensionData | ||
| 13 | { | ||
| 14 | public override bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | ||
| 15 | { | ||
| 16 | tupleDefinition = (name == NetfxTupleDefinitionNames.NetFxNativeImage) ? NetfxTupleDefinitions.NetFxNativeImage : null; | ||
| 17 | return tupleDefinition != null; | ||
| 18 | } | ||
| 19 | |||
| 20 | public override Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) | ||
| 21 | { | ||
| 22 | return Intermediate.Load(typeof(NetfxExtensionData).Assembly, "WixToolset.Netfx.netfx.wixlib", tupleDefinitions); | ||
| 23 | } | ||
| 24 | } | ||
| 25 | } | ||
