main
cs 36 lines 1.3 KB
Raw
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.Extensibility
4 {
5 using System;
6 using WixToolset.Data;
7
8 /// <summary>
9 /// Base class for creating a resolver extension.
10 /// </summary>
11 public abstract class BaseExtensionData : IExtensionData
12 {
13 /// <summary>
14 /// Obsolete in WiX v5. Use the WixLocalization/@ExtensionDefaultCulture attribute in the wxl file instead.
15 /// </summary>
16 [Obsolete("Set the ExtensionDefaultCulture attribute in the WixLocalization source file instead.")]
17 public virtual string DefaultCulture => null;
18
19 /// <summary>
20 /// See <see cref="IExtensionData.GetLibrary"/>
21 /// </summary>
22 public virtual Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions)
23 {
24 return null;
25 }
26
27 /// <summary>
28 /// See <see cref="IExtensionData.TryGetSymbolDefinitionByName"/>
29 /// </summary>
30 public virtual bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition)
31 {
32 symbolDefinition = null;
33 return false;
34 }
35 }
36 }