aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Extensibility
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/Extensibility')
-rw-r--r--src/WixToolset.Core/Extensibility/HeatExtension.cs12
-rw-r--r--src/WixToolset.Core/Extensibility/IHarvesterCore.cs18
-rw-r--r--src/WixToolset.Core/Extensibility/IHeatCore.cs14
3 files changed, 8 insertions, 36 deletions
diff --git a/src/WixToolset.Core/Extensibility/HeatExtension.cs b/src/WixToolset.Core/Extensibility/HeatExtension.cs
index 2b4a6823..b0da75f1 100644
--- a/src/WixToolset.Core/Extensibility/HeatExtension.cs
+++ b/src/WixToolset.Core/Extensibility/HeatExtension.cs
@@ -123,13 +123,13 @@ namespace WixToolset.Core.Extensibility
123 } 123 }
124 else 124 else
125 { 125 {
126 throw new WixException(WixErrors.InvalidExtension(assemblyName, innerE.Message)); 126 throw new WixException(ErrorMessages.InvalidExtension(assemblyName, innerE.Message));
127 } 127 }
128 } 128 }
129 } 129 }
130 else 130 else
131 { 131 {
132 throw new WixException(WixErrors.InvalidExtension(assemblyName, e.Message)); 132 throw new WixException(ErrorMessages.InvalidExtension(assemblyName, e.Message));
133 } 133 }
134 } 134 }
135 } 135 }
@@ -143,7 +143,7 @@ namespace WixToolset.Core.Extensibility
143 } 143 }
144 catch (Exception e) 144 catch (Exception e)
145 { 145 {
146 throw new WixException(WixErrors.InvalidExtensionType(assemblyName, className, e.GetType().ToString(), e.Message)); 146 throw new WixException(ErrorMessages.InvalidExtensionType(assemblyName, className, e.GetType().ToString(), e.Message));
147 } 147 }
148 } 148 }
149 else 149 else
@@ -157,7 +157,7 @@ namespace WixToolset.Core.Extensibility
157 } 157 }
158 else 158 else
159 { 159 {
160 throw new WixException(WixErrors.InvalidExtensionType(assemblyName, typeof(AssemblyDefaultHeatExtensionAttribute).ToString())); 160 throw new WixException(ErrorMessages.InvalidExtensionType(assemblyName, typeof(AssemblyDefaultHeatExtensionAttribute).ToString()));
161 } 161 }
162 } 162 }
163 } 163 }
@@ -168,7 +168,7 @@ namespace WixToolset.Core.Extensibility
168 } 168 }
169 else 169 else
170 { 170 {
171 throw new WixException(WixErrors.InvalidExtensionType(extension, extensionType.ToString(), typeof(HeatExtension).ToString())); 171 throw new WixException(ErrorMessages.InvalidExtensionType(extension, extensionType.ToString(), typeof(HeatExtension).ToString()));
172 } 172 }
173 } 173 }
174 174
@@ -191,7 +191,7 @@ namespace WixToolset.Core.Extensibility
191 } 191 }
192 catch (Exception e) 192 catch (Exception e)
193 { 193 {
194 throw new WixException(WixErrors.InvalidExtension(assemblyName, e.Message)); 194 throw new WixException(ErrorMessages.InvalidExtension(assemblyName, e.Message));
195 } 195 }
196 196
197 return extensionAssembly; 197 return extensionAssembly;
diff --git a/src/WixToolset.Core/Extensibility/IHarvesterCore.cs b/src/WixToolset.Core/Extensibility/IHarvesterCore.cs
index 9a6fd10c..a9001b46 100644
--- a/src/WixToolset.Core/Extensibility/IHarvesterCore.cs
+++ b/src/WixToolset.Core/Extensibility/IHarvesterCore.cs
@@ -2,22 +2,14 @@
2 2
3namespace WixToolset 3namespace WixToolset
4{ 4{
5 using System; 5 using WixToolset.Extensibility.Services;
6 using System.Diagnostics.CodeAnalysis;
7 using System.IO;
8 using WixToolset.Data;
9 using Wix = WixToolset.Data.Serialize;
10 6
11 /// <summary> 7 /// <summary>
12 /// The WiX Toolset harvester core. 8 /// The WiX Toolset harvester core.
13 /// </summary> 9 /// </summary>
14 public interface IHarvesterCore 10 public interface IHarvesterCore
15 { 11 {
16 /// <summary> 12 IMessaging Messaging { get; set; }
17 /// Gets whether the harvester core encountered an error while processing.
18 /// </summary>
19 /// <value>Flag if core encountered an error during processing.</value>
20 bool EncounteredError { get; }
21 13
22 /// <summary> 14 /// <summary>
23 /// Gets or sets the value of the extension argument passed to heat. 15 /// Gets or sets the value of the extension argument passed to heat.
@@ -47,12 +39,6 @@ namespace WixToolset
47 string GenerateIdentifier(string prefix, params string[] args); 39 string GenerateIdentifier(string prefix, params string[] args);
48 40
49 /// <summary> 41 /// <summary>
50 /// Sends a message to the message delegate if there is one.
51 /// </summary>
52 /// <param name="mea">Message event arguments.</param>
53 void OnMessage(MessageEventArgs mea);
54
55 /// <summary>
56 /// Resolves a file's path if the Wix.File.Source value starts with "SourceDir\". 42 /// Resolves a file's path if the Wix.File.Source value starts with "SourceDir\".
57 /// </summary> 43 /// </summary>
58 /// <param name="fileSource">The Wix.File.Source value with "SourceDir\".</param> 44 /// <param name="fileSource">The Wix.File.Source value with "SourceDir\".</param>
diff --git a/src/WixToolset.Core/Extensibility/IHeatCore.cs b/src/WixToolset.Core/Extensibility/IHeatCore.cs
index 031c8132..1365dfaf 100644
--- a/src/WixToolset.Core/Extensibility/IHeatCore.cs
+++ b/src/WixToolset.Core/Extensibility/IHeatCore.cs
@@ -2,20 +2,12 @@
2 2
3namespace WixToolset.Core.Extensibility 3namespace WixToolset.Core.Extensibility
4{ 4{
5 using WixToolset.Data;
6
7 /// <summary> 5 /// <summary>
8 /// The WiX Toolset Harvester application core. 6 /// The WiX Toolset Harvester application core.
9 /// </summary> 7 /// </summary>
10 public interface IHeatCore 8 public interface IHeatCore
11 { 9 {
12 /// <summary> 10 /// <summary>
13 /// Gets whether the mutator core encountered an error while processing.
14 /// </summary>
15 /// <value>Flag if core encountered an error during processing.</value>
16 bool EncounteredError { get; }
17
18 /// <summary>
19 /// Gets the harvester. 11 /// Gets the harvester.
20 /// </summary> 12 /// </summary>
21 /// <value>The harvester.</value> 13 /// <value>The harvester.</value>
@@ -26,11 +18,5 @@ namespace WixToolset.Core.Extensibility
26 /// </summary> 18 /// </summary>
27 /// <value>The mutator.</value> 19 /// <value>The mutator.</value>
28 Mutator Mutator { get; } 20 Mutator Mutator { get; }
29
30 /// <summary>
31 /// Sends a message to the message delegate if there is one.
32 /// </summary>
33 /// <param name="mea">Message event arguments.</param>
34 void OnMessage(MessageEventArgs mea);
35 } 21 }
36} 22}