aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/WixToolset.Extensibility/BasePreprocessorExtension.cs2
-rw-r--r--src/WixToolset.Extensibility/Data/IIncludedFile.cs21
-rw-r--r--src/WixToolset.Extensibility/Data/IPreprocessResult.cs14
-rw-r--r--src/WixToolset.Extensibility/IPreprocessorExtension.cs2
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
3namespace 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
3namespace 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}