diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-02 00:45:33 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-02 00:45:33 -0800 |
| commit | fb2df0e24c0709ce94c396624cf86c70e02da01f (patch) | |
| tree | e0a16a342dca4f9b343afa945d89116856950b83 /src/WixToolset.Extensibility/BaseCompilerExtension.cs | |
| parent | 404f34f00ecce034a8a06fe4757789c6ce62f3f6 (diff) | |
| download | wix-fb2df0e24c0709ce94c396624cf86c70e02da01f.tar.gz wix-fb2df0e24c0709ce94c396624cf86c70e02da01f.tar.bz2 wix-fb2df0e24c0709ce94c396624cf86c70e02da01f.zip | |
Fix IExtensionCommandLine and IPreprocessorExtension
Diffstat (limited to 'src/WixToolset.Extensibility/BaseCompilerExtension.cs')
| -rw-r--r-- | src/WixToolset.Extensibility/BaseCompilerExtension.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/BaseCompilerExtension.cs b/src/WixToolset.Extensibility/BaseCompilerExtension.cs index 508886d3..5dfe5dcf 100644 --- a/src/WixToolset.Extensibility/BaseCompilerExtension.cs +++ b/src/WixToolset.Extensibility/BaseCompilerExtension.cs | |||
| @@ -13,6 +13,11 @@ namespace WixToolset.Extensibility | |||
| 13 | public abstract class BaseCompilerExtension : ICompilerExtension | 13 | public abstract class BaseCompilerExtension : ICompilerExtension |
| 14 | { | 14 | { |
| 15 | /// <summary> | 15 | /// <summary> |
| 16 | /// Messaging for use by the extension. | ||
| 17 | /// </summary> | ||
| 18 | protected Messaging Messaging { get; private set; } | ||
| 19 | |||
| 20 | /// <summary> | ||
| 16 | /// ParserHelper for use by the extension. | 21 | /// ParserHelper for use by the extension. |
| 17 | /// </summary> | 22 | /// </summary> |
| 18 | protected IParseHelper ParseHelper { get; private set; } | 23 | protected IParseHelper ParseHelper { get; private set; } |
| @@ -28,6 +33,8 @@ namespace WixToolset.Extensibility | |||
| 28 | /// </summary> | 33 | /// </summary> |
| 29 | public virtual void PreCompile(ICompileContext context) | 34 | public virtual void PreCompile(ICompileContext context) |
| 30 | { | 35 | { |
| 36 | this.Messaging = context.Messaging; | ||
| 37 | |||
| 31 | this.ParseHelper = context.ServiceProvider.GetService<IParseHelper>(); | 38 | this.ParseHelper = context.ServiceProvider.GetService<IParseHelper>(); |
| 32 | } | 39 | } |
| 33 | 40 | ||
