diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-03-01 16:43:11 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@robmensching.com> | 2019-03-01 16:46:13 -0800 |
| commit | 93692d4306b0f6ab3f97aab1598785951ec7bc47 (patch) | |
| tree | defd1292ed7affed3464f0cd501036d379486919 /src | |
| parent | e9fea339e473e6dcc32e34e995429b41cabb6c22 (diff) | |
| download | wix-93692d4306b0f6ab3f97aab1598785951ec7bc47.tar.gz wix-93692d4306b0f6ab3f97aab1598785951ec7bc47.tar.bz2 wix-93692d4306b0f6ab3f97aab1598785951ec7bc47.zip | |
Include the include files with the processed document
Diffstat (limited to 'src')
4 files changed, 37 insertions, 2 deletions
diff --git a/src/WixToolset.Extensibility/BasePreprocessorExtension.cs b/src/WixToolset.Extensibility/BasePreprocessorExtension.cs index b7d29095..cfacf97a 100644 --- a/src/WixToolset.Extensibility/BasePreprocessorExtension.cs +++ b/src/WixToolset.Extensibility/BasePreprocessorExtension.cs | |||
| @@ -85,7 +85,7 @@ namespace WixToolset.Extensibility | |||
| 85 | /// <summary> | 85 | /// <summary> |
| 86 | /// Called at the end of the preprocessing of a source file. | 86 | /// Called at the end of the preprocessing of a source file. |
| 87 | /// </summary> | 87 | /// </summary> |
| 88 | public virtual void PostPreprocess(XDocument document) | 88 | public virtual void PostPreprocess(IPreprocessResult result) |
| 89 | { | 89 | { |
| 90 | } | 90 | } |
| 91 | } | 91 | } |
diff --git a/src/WixToolset.Extensibility/Data/IIncludedFile.cs b/src/WixToolset.Extensibility/Data/IIncludedFile.cs new file mode 100644 index 00000000..ac5e604c --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IIncludedFile.cs | |||
| @@ -0,0 +1,21 @@ | |||
| 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.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data; | ||
| 6 | |||
| 7 | public interface IIncludedFile | ||
| 8 | { | ||
| 9 | /// <summary> | ||
| 10 | /// Gets the full path of the included file. | ||
| 11 | /// </summary> | ||
| 12 | /// <value>The full path of the included file.</value> | ||
| 13 | string Path { get; set; } | ||
| 14 | |||
| 15 | /// <summary> | ||
| 16 | /// Gets the source line numbers. | ||
| 17 | /// </summary> | ||
| 18 | /// <value>The source line numbers.</value> | ||
| 19 | SourceLineNumber SourceLineNumbers { get; set; } | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/src/WixToolset.Extensibility/Data/IPreprocessResult.cs b/src/WixToolset.Extensibility/Data/IPreprocessResult.cs new file mode 100644 index 00000000..955c0ced --- /dev/null +++ b/src/WixToolset.Extensibility/Data/IPreprocessResult.cs | |||
| @@ -0,0 +1,14 @@ | |||
| 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.Data | ||
| 4 | { | ||
| 5 | using System.Collections.Generic; | ||
| 6 | using System.Xml.Linq; | ||
| 7 | |||
| 8 | public interface IPreprocessResult | ||
| 9 | { | ||
| 10 | XDocument Document { get; set; } | ||
| 11 | |||
| 12 | IEnumerable<IIncludedFile> IncludedFiles { get; set; } | ||
| 13 | } | ||
| 14 | } | ||
diff --git a/src/WixToolset.Extensibility/IPreprocessorExtension.cs b/src/WixToolset.Extensibility/IPreprocessorExtension.cs index 7eb8584f..94eb7d78 100644 --- a/src/WixToolset.Extensibility/IPreprocessorExtension.cs +++ b/src/WixToolset.Extensibility/IPreprocessorExtension.cs | |||
| @@ -53,6 +53,6 @@ namespace WixToolset.Extensibility | |||
| 53 | /// <summary> | 53 | /// <summary> |
| 54 | /// Called at the end of the preprocessing of a source file. | 54 | /// Called at the end of the preprocessing of a source file. |
| 55 | /// </summary> | 55 | /// </summary> |
| 56 | void PostPreprocess(XDocument document); | 56 | void PostPreprocess(IPreprocessResult result); |
| 57 | } | 57 | } |
| 58 | } | 58 | } |
