diff options
Diffstat (limited to 'src/wixext')
-rw-r--r-- | src/wixext/HttpCompiler.cs | 114 | ||||
-rw-r--r-- | src/wixext/HttpConstants.cs | 2 | ||||
-rw-r--r-- | src/wixext/HttpDecompiler.cs | 4 | ||||
-rw-r--r-- | src/wixext/HttpErrors.cs | 31 | ||||
-rw-r--r-- | src/wixext/HttpExtensionData.cs | 50 | ||||
-rw-r--r-- | src/wixext/HttpExtensionFactory.cs | 18 | ||||
-rw-r--r-- | src/wixext/HttpWindowsInstallerBackendBinderExtension.cs | 26 | ||||
-rw-r--r-- | src/wixext/Tuples/HttpTupleDefinitions.cs | 43 | ||||
-rw-r--r-- | src/wixext/Tuples/WixHttpUrlAceTuple.cs | 71 | ||||
-rw-r--r-- | src/wixext/Tuples/WixHttpUrlReservationTuple.cs | 79 | ||||
-rw-r--r-- | src/wixext/WixHttpExtension.csproj | 48 | ||||
-rw-r--r-- | src/wixext/WixToolset.Http.wixext.csproj | 33 | ||||
-rw-r--r-- | src/wixext/WixToolset.Http.wixext.targets | 11 | ||||
-rw-r--r-- | src/wixext/messages.xml | 13 |
14 files changed, 377 insertions, 166 deletions
diff --git a/src/wixext/HttpCompiler.cs b/src/wixext/HttpCompiler.cs index c694ccde..094f5594 100644 --- a/src/wixext/HttpCompiler.cs +++ b/src/wixext/HttpCompiler.cs | |||
@@ -1,26 +1,20 @@ | |||
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. | 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 | 2 | ||
3 | namespace WixToolset.Extensions | 3 | namespace WixToolset.Http |
4 | { | 4 | { |
5 | using System; | 5 | using System; |
6 | using System.Collections.Generic; | 6 | using System.Collections.Generic; |
7 | using System.Globalization; | ||
8 | using System.Xml.Linq; | 7 | using System.Xml.Linq; |
9 | using WixToolset.Data; | 8 | using WixToolset.Data; |
10 | using WixToolset.Extensibility; | 9 | using WixToolset.Extensibility; |
10 | using WixToolset.Http.Tuples; | ||
11 | 11 | ||
12 | /// <summary> | 12 | /// <summary> |
13 | /// The compiler for the WiX Toolset Http Extension. | 13 | /// The compiler for the WiX Toolset Http Extension. |
14 | /// </summary> | 14 | /// </summary> |
15 | public sealed class HttpCompiler : CompilerExtension | 15 | public sealed class HttpCompiler : BaseCompilerExtension |
16 | { | 16 | { |
17 | /// <summary> | 17 | public override XNamespace Namespace => "http://wixtoolset.org/schemas/v4/wxs/http"; |
18 | /// Instantiate a new HttpCompiler. | ||
19 | /// </summary> | ||
20 | public HttpCompiler() | ||
21 | { | ||
22 | this.Namespace = "http://wixtoolset.org/schemas/v4/wxs/http"; | ||
23 | } | ||
24 | 18 | ||
25 | /// <summary> | 19 | /// <summary> |
26 | /// Processes an element for the Compiler. | 20 | /// Processes an element for the Compiler. |
@@ -29,7 +23,7 @@ namespace WixToolset.Extensions | |||
29 | /// <param name="parentElement">Parent element of element to process.</param> | 23 | /// <param name="parentElement">Parent element of element to process.</param> |
30 | /// <param name="element">Element to process.</param> | 24 | /// <param name="element">Element to process.</param> |
31 | /// <param name="contextValues">Extra information about the context in which this element is being parsed.</param> | 25 | /// <param name="contextValues">Extra information about the context in which this element is being parsed.</param> |
32 | public override void ParseElement(XElement parentElement, XElement element, IDictionary<string, string> context) | 26 | public override void ParseElement(Intermediate intermediate, IntermediateSection section, XElement parentElement, XElement element, IDictionary<string, string> context) |
33 | { | 27 | { |
34 | switch (parentElement.Name.LocalName) | 28 | switch (parentElement.Name.LocalName) |
35 | { | 29 | { |
@@ -41,10 +35,10 @@ namespace WixToolset.Extensions | |||
41 | switch (element.Name.LocalName) | 35 | switch (element.Name.LocalName) |
42 | { | 36 | { |
43 | case "UrlReservation": | 37 | case "UrlReservation": |
44 | this.ParseUrlReservationElement(element, serviceComponentId, serviceUser); | 38 | this.ParseUrlReservationElement(intermediate, section, element, serviceComponentId, serviceUser); |
45 | break; | 39 | break; |
46 | default: | 40 | default: |
47 | this.Core.UnexpectedElement(parentElement, element); | 41 | this.ParseHelper.UnexpectedElement(parentElement, element); |
48 | break; | 42 | break; |
49 | } | 43 | } |
50 | break; | 44 | break; |
@@ -54,15 +48,15 @@ namespace WixToolset.Extensions | |||
54 | switch (element.Name.LocalName) | 48 | switch (element.Name.LocalName) |
55 | { | 49 | { |
56 | case "UrlReservation": | 50 | case "UrlReservation": |
57 | this.ParseUrlReservationElement(element, componentId, null); | 51 | this.ParseUrlReservationElement(intermediate, section, element, componentId, null); |
58 | break; | 52 | break; |
59 | default: | 53 | default: |
60 | this.Core.UnexpectedElement(parentElement, element); | 54 | this.ParseHelper.UnexpectedElement(parentElement, element); |
61 | break; | 55 | break; |
62 | } | 56 | } |
63 | break; | 57 | break; |
64 | default: | 58 | default: |
65 | this.Core.UnexpectedElement(parentElement, element); | 59 | this.ParseHelper.UnexpectedElement(parentElement, element); |
66 | break; | 60 | break; |
67 | } | 61 | } |
68 | } | 62 | } |
@@ -73,9 +67,9 @@ namespace WixToolset.Extensions | |||
73 | /// <param name="node">The element to parse.</param> | 67 | /// <param name="node">The element to parse.</param> |
74 | /// <param name="componentId">Identifier of the component that owns this URL reservation.</param> | 68 | /// <param name="componentId">Identifier of the component that owns this URL reservation.</param> |
75 | /// <param name="securityPrincipal">The security principal of the parent element (null if nested under Component).</param> | 69 | /// <param name="securityPrincipal">The security principal of the parent element (null if nested under Component).</param> |
76 | private void ParseUrlReservationElement(XElement node, string componentId, string securityPrincipal) | 70 | private void ParseUrlReservationElement(Intermediate intermediate, IntermediateSection section, XElement node, string componentId, string securityPrincipal) |
77 | { | 71 | { |
78 | SourceLineNumber sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); | 72 | SourceLineNumber sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(node); |
79 | Identifier id = null; | 73 | Identifier id = null; |
80 | int handleExisting = HttpConstants.heReplace; | 74 | int handleExisting = HttpConstants.heReplace; |
81 | string handleExistingValue = null; | 75 | string handleExistingValue = null; |
@@ -90,10 +84,10 @@ namespace WixToolset.Extensions | |||
90 | switch (attrib.Name.LocalName) | 84 | switch (attrib.Name.LocalName) |
91 | { | 85 | { |
92 | case "Id": | 86 | case "Id": |
93 | id = this.Core.GetAttributeIdentifier(sourceLineNumbers, attrib); | 87 | id = this.ParseHelper.GetAttributeIdentifier(sourceLineNumbers, attrib); |
94 | break; | 88 | break; |
95 | case "HandleExisting": | 89 | case "HandleExisting": |
96 | handleExistingValue = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 90 | handleExistingValue = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
97 | switch (handleExistingValue) | 91 | switch (handleExistingValue) |
98 | { | 92 | { |
99 | case "replace": | 93 | case "replace": |
@@ -106,31 +100,31 @@ namespace WixToolset.Extensions | |||
106 | handleExisting = HttpConstants.heFail; | 100 | handleExisting = HttpConstants.heFail; |
107 | break; | 101 | break; |
108 | default: | 102 | default: |
109 | this.Core.OnMessage(WixErrors.IllegalAttributeValue(sourceLineNumbers, node.Name.LocalName, "HandleExisting", handleExistingValue, "replace", "ignore", "fail")); | 103 | this.Messaging.Write(ErrorMessages.IllegalAttributeValue(sourceLineNumbers, node.Name.LocalName, "HandleExisting", handleExistingValue, "replace", "ignore", "fail")); |
110 | break; | 104 | break; |
111 | } | 105 | } |
112 | break; | 106 | break; |
113 | case "Sddl": | 107 | case "Sddl": |
114 | sddl = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 108 | sddl = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
115 | break; | 109 | break; |
116 | case "Url": | 110 | case "Url": |
117 | url = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 111 | url = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
118 | break; | 112 | break; |
119 | default: | 113 | default: |
120 | this.Core.UnexpectedAttribute(node, attrib); | 114 | this.ParseHelper.UnexpectedAttribute(node, attrib); |
121 | break; | 115 | break; |
122 | } | 116 | } |
123 | } | 117 | } |
124 | else | 118 | else |
125 | { | 119 | { |
126 | this.Core.ParseExtensionAttribute(node, attrib); | 120 | this.ParseHelper.ParseExtensionAttribute(this.Context.Extensions, intermediate, section, node, attrib); |
127 | } | 121 | } |
128 | } | 122 | } |
129 | 123 | ||
130 | // Need the element ID for child element processing, so generate now if not authored. | 124 | // Need the element ID for child element processing, so generate now if not authored. |
131 | if (null == id) | 125 | if (null == id) |
132 | { | 126 | { |
133 | id = this.Core.CreateIdentifier("url", componentId, securityPrincipal, url); | 127 | id = this.ParseHelper.CreateIdentifier("url", componentId, securityPrincipal, url); |
134 | } | 128 | } |
135 | 129 | ||
136 | // Parse UrlAce children. | 130 | // Parse UrlAce children. |
@@ -143,57 +137,56 @@ namespace WixToolset.Extensions | |||
143 | case "UrlAce": | 137 | case "UrlAce": |
144 | if (null != sddl) | 138 | if (null != sddl) |
145 | { | 139 | { |
146 | this.Core.OnMessage(WixErrors.IllegalParentAttributeWhenNested(sourceLineNumbers, "UrlReservation", "Sddl", "UrlAce")); | 140 | this.Messaging.Write(ErrorMessages.IllegalParentAttributeWhenNested(sourceLineNumbers, "UrlReservation", "Sddl", "UrlAce")); |
147 | } | 141 | } |
148 | else | 142 | else |
149 | { | 143 | { |
150 | foundACE = true; | 144 | foundACE = true; |
151 | this.ParseUrlAceElement(child, id.Id, securityPrincipal); | 145 | this.ParseUrlAceElement(intermediate, section, child, id.Id, securityPrincipal); |
152 | } | 146 | } |
153 | break; | 147 | break; |
154 | default: | 148 | default: |
155 | this.Core.UnexpectedElement(node, child); | 149 | this.ParseHelper.UnexpectedElement(node, child); |
156 | break; | 150 | break; |
157 | } | 151 | } |
158 | } | 152 | } |
159 | else | 153 | else |
160 | { | 154 | { |
161 | this.Core.ParseExtensionElement(node, child); | 155 | this.ParseHelper.ParseExtensionElement(this.Context.Extensions, intermediate, section, node, child); |
162 | } | 156 | } |
163 | } | 157 | } |
164 | 158 | ||
165 | // Url is required. | 159 | // Url is required. |
166 | if (null == url) | 160 | if (null == url) |
167 | { | 161 | { |
168 | this.Core.OnMessage(WixErrors.ExpectedAttribute(sourceLineNumbers, node.Name.LocalName, "Url")); | 162 | this.Messaging.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, node.Name.LocalName, "Url")); |
169 | } | 163 | } |
170 | 164 | ||
171 | // Security is required. | 165 | // Security is required. |
172 | if (null == sddl && !foundACE) | 166 | if (null == sddl && !foundACE) |
173 | { | 167 | { |
174 | this.Core.OnMessage(HttpErrors.NoSecuritySpecified(sourceLineNumbers)); | 168 | this.Messaging.Write(HttpErrors.NoSecuritySpecified(sourceLineNumbers)); |
175 | } | 169 | } |
176 | 170 | ||
177 | if (!this.Core.EncounteredError) | 171 | if (!this.Messaging.EncounteredError) |
178 | { | 172 | { |
179 | Row row = this.Core.CreateRow(sourceLineNumbers, "WixHttpUrlReservation"); | 173 | var row = (WixHttpUrlReservationTuple)this.ParseHelper.CreateRow(section, sourceLineNumbers, "WixHttpUrlReservation", id); |
180 | row[0] = id.Id; | 174 | row.HandleExisting = handleExisting; |
181 | row[1] = handleExisting; | 175 | row.Sddl = sddl; |
182 | row[2] = sddl; | 176 | row.Url = url; |
183 | row[3] = url; | 177 | row.Component_ = componentId; |
184 | row[4] = componentId; | ||
185 | 178 | ||
186 | if (this.Core.CurrentPlatform == Platform.ARM) | 179 | if (this.Context.Platform == Platform.ARM) |
187 | { | 180 | { |
188 | // Ensure ARM version of the CA is referenced. | 181 | // Ensure ARM version of the CA is referenced. |
189 | this.Core.CreateSimpleReference(sourceLineNumbers, "CustomAction", "WixSchedHttpUrlReservationsInstall_ARM"); | 182 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, "CustomAction", "WixSchedHttpUrlReservationsInstall_ARM"); |
190 | this.Core.CreateSimpleReference(sourceLineNumbers, "CustomAction", "WixSchedHttpUrlReservationsUninstall_ARM"); | 183 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, "CustomAction", "WixSchedHttpUrlReservationsUninstall_ARM"); |
191 | } | 184 | } |
192 | else | 185 | else |
193 | { | 186 | { |
194 | // All other supported platforms use x86. | 187 | // All other supported platforms use x86. |
195 | this.Core.CreateSimpleReference(sourceLineNumbers, "CustomAction", "WixSchedHttpUrlReservationsInstall"); | 188 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, "CustomAction", "WixSchedHttpUrlReservationsInstall"); |
196 | this.Core.CreateSimpleReference(sourceLineNumbers, "CustomAction", "WixSchedHttpUrlReservationsUninstall"); | 189 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, "CustomAction", "WixSchedHttpUrlReservationsUninstall"); |
197 | } | 190 | } |
198 | } | 191 | } |
199 | } | 192 | } |
@@ -204,9 +197,9 @@ namespace WixToolset.Extensions | |||
204 | /// <param name="node">The element to parse.</param> | 197 | /// <param name="node">The element to parse.</param> |
205 | /// <param name="urlReservationId">The URL reservation ID.</param> | 198 | /// <param name="urlReservationId">The URL reservation ID.</param> |
206 | /// <param name="defaultSecurityPrincipal">The default security principal.</param> | 199 | /// <param name="defaultSecurityPrincipal">The default security principal.</param> |
207 | private void ParseUrlAceElement(XElement node, string urlReservationId, string defaultSecurityPrincipal) | 200 | private void ParseUrlAceElement(Intermediate intermediate, IntermediateSection section, XElement node, string urlReservationId, string defaultSecurityPrincipal) |
208 | { | 201 | { |
209 | SourceLineNumber sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); | 202 | SourceLineNumber sourceLineNumbers = this.ParseHelper.GetSourceLineNumbers(node); |
210 | Identifier id = null; | 203 | Identifier id = null; |
211 | string securityPrincipal = defaultSecurityPrincipal; | 204 | string securityPrincipal = defaultSecurityPrincipal; |
212 | int rights = HttpConstants.GENERIC_ALL; | 205 | int rights = HttpConstants.GENERIC_ALL; |
@@ -219,13 +212,13 @@ namespace WixToolset.Extensions | |||
219 | switch (attrib.Name.LocalName) | 212 | switch (attrib.Name.LocalName) |
220 | { | 213 | { |
221 | case "Id": | 214 | case "Id": |
222 | id = this.Core.GetAttributeIdentifier(sourceLineNumbers, attrib); | 215 | id = this.ParseHelper.GetAttributeIdentifier(sourceLineNumbers, attrib); |
223 | break; | 216 | break; |
224 | case "SecurityPrincipal": | 217 | case "SecurityPrincipal": |
225 | securityPrincipal = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 218 | securityPrincipal = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
226 | break; | 219 | break; |
227 | case "Rights": | 220 | case "Rights": |
228 | rightsValue = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 221 | rightsValue = this.ParseHelper.GetAttributeValue(sourceLineNumbers, attrib); |
229 | switch (rightsValue) | 222 | switch (rightsValue) |
230 | { | 223 | { |
231 | case "all": | 224 | case "all": |
@@ -238,42 +231,41 @@ namespace WixToolset.Extensions | |||
238 | rights = HttpConstants.GENERIC_EXECUTE; | 231 | rights = HttpConstants.GENERIC_EXECUTE; |
239 | break; | 232 | break; |
240 | default: | 233 | default: |
241 | this.Core.OnMessage(WixErrors.IllegalAttributeValue(sourceLineNumbers, node.Name.LocalName, "Rights", rightsValue, "all", "delegate", "register")); | 234 | this.Messaging.Write(ErrorMessages.IllegalAttributeValue(sourceLineNumbers, node.Name.LocalName, "Rights", rightsValue, "all", "delegate", "register")); |
242 | break; | 235 | break; |
243 | } | 236 | } |
244 | break; | 237 | break; |
245 | default: | 238 | default: |
246 | this.Core.UnexpectedAttribute(node, attrib); | 239 | this.ParseHelper.UnexpectedAttribute(node, attrib); |
247 | break; | 240 | break; |
248 | } | 241 | } |
249 | } | 242 | } |
250 | else | 243 | else |
251 | { | 244 | { |
252 | this.Core.ParseExtensionAttribute(node, attrib); | 245 | this.ParseHelper.ParseExtensionAttribute(this.Context.Extensions, intermediate, section, node, attrib); |
253 | } | 246 | } |
254 | } | 247 | } |
255 | 248 | ||
256 | // Generate Id now if not authored. | 249 | // Generate Id now if not authored. |
257 | if (null == id) | 250 | if (null == id) |
258 | { | 251 | { |
259 | id = this.Core.CreateIdentifier("ace", urlReservationId, securityPrincipal, rightsValue); | 252 | id = this.ParseHelper.CreateIdentifier("ace", urlReservationId, securityPrincipal, rightsValue); |
260 | } | 253 | } |
261 | 254 | ||
262 | this.Core.ParseForExtensionElements(node); | 255 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, node); |
263 | 256 | ||
264 | // SecurityPrincipal is required. | 257 | // SecurityPrincipal is required. |
265 | if (null == securityPrincipal) | 258 | if (null == securityPrincipal) |
266 | { | 259 | { |
267 | this.Core.OnMessage(WixErrors.ExpectedAttribute(sourceLineNumbers, node.Name.LocalName, "SecurityPrincipal")); | 260 | this.Messaging.Write(ErrorMessages.ExpectedAttribute(sourceLineNumbers, node.Name.LocalName, "SecurityPrincipal")); |
268 | } | 261 | } |
269 | 262 | ||
270 | if (!this.Core.EncounteredError) | 263 | if (!this.Messaging.EncounteredError) |
271 | { | 264 | { |
272 | Row row = this.Core.CreateRow(sourceLineNumbers, "WixHttpUrlAce"); | 265 | var row = (WixHttpUrlAceTuple)this.ParseHelper.CreateRow(section, sourceLineNumbers, "WixHttpUrlAce", id); |
273 | row[0] = id.Id; | 266 | row.WixHttpUrlReservation_ = urlReservationId; |
274 | row[1] = urlReservationId; | 267 | row.SecurityPrincipal = securityPrincipal; |
275 | row[2] = securityPrincipal; | 268 | row.Rights = rights; |
276 | row[3] = rights; | ||
277 | } | 269 | } |
278 | } | 270 | } |
279 | } | 271 | } |
diff --git a/src/wixext/HttpConstants.cs b/src/wixext/HttpConstants.cs index 7760d03f..1c96f278 100644 --- a/src/wixext/HttpConstants.cs +++ b/src/wixext/HttpConstants.cs | |||
@@ -1,6 +1,6 @@ | |||
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. | 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 | 2 | ||
3 | namespace WixToolset.Extensions | 3 | namespace WixToolset.Http |
4 | { | 4 | { |
5 | using System; | 5 | using System; |
6 | 6 | ||
diff --git a/src/wixext/HttpDecompiler.cs b/src/wixext/HttpDecompiler.cs index 043ee1e1..8991ec2f 100644 --- a/src/wixext/HttpDecompiler.cs +++ b/src/wixext/HttpDecompiler.cs | |||
@@ -1,7 +1,8 @@ | |||
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. | 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 | 2 | ||
3 | namespace WixToolset.Extensions | 3 | namespace WixToolset.Http |
4 | { | 4 | { |
5 | #if TODO_CONSIDER_DECOMPILER | ||
5 | using System; | 6 | using System; |
6 | using System.Collections; | 7 | using System.Collections; |
7 | using System.Diagnostics; | 8 | using System.Diagnostics; |
@@ -132,4 +133,5 @@ namespace WixToolset.Extensions | |||
132 | } | 133 | } |
133 | } | 134 | } |
134 | } | 135 | } |
136 | #endif | ||
135 | } | 137 | } |
diff --git a/src/wixext/HttpErrors.cs b/src/wixext/HttpErrors.cs new file mode 100644 index 00000000..e87adf54 --- /dev/null +++ b/src/wixext/HttpErrors.cs | |||
@@ -0,0 +1,31 @@ | |||
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.Http | ||
4 | { | ||
5 | using System; | ||
6 | using System.Resources; | ||
7 | using WixToolset.Data; | ||
8 | |||
9 | public static class HttpErrors | ||
10 | { | ||
11 | public static Message NoSecuritySpecified(SourceLineNumber sourceLineNumbers) | ||
12 | { | ||
13 | return Message(sourceLineNumbers, Ids.NoSecuritySpecified, "The UrlReservation element doesn't identify the security for the reservation. You must either specify the Sddl attribute, or provide child UrlAce elements."); | ||
14 | } | ||
15 | |||
16 | private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) | ||
17 | { | ||
18 | return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args); | ||
19 | } | ||
20 | |||
21 | private static Message Message(SourceLineNumber sourceLineNumber, Ids id, ResourceManager resourceManager, string resourceName, params object[] args) | ||
22 | { | ||
23 | return new Message(sourceLineNumber, MessageLevel.Error, (int)id, resourceManager, resourceName, args); | ||
24 | } | ||
25 | |||
26 | public enum Ids | ||
27 | { | ||
28 | NoSecuritySpecified = 6701, | ||
29 | } | ||
30 | } | ||
31 | } | ||
diff --git a/src/wixext/HttpExtensionData.cs b/src/wixext/HttpExtensionData.cs index db79a6c1..2ae4a911 100644 --- a/src/wixext/HttpExtensionData.cs +++ b/src/wixext/HttpExtensionData.cs | |||
@@ -1,64 +1,30 @@ | |||
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. | 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 | 2 | ||
3 | namespace WixToolset.Extensions | 3 | namespace WixToolset.Http |
4 | { | 4 | { |
5 | using System; | ||
6 | using System.Reflection; | ||
7 | using WixToolset.Data; | 5 | using WixToolset.Data; |
8 | using WixToolset.Extensibility; | 6 | using WixToolset.Extensibility; |
9 | 7 | ||
10 | /// <summary> | 8 | /// <summary> |
11 | /// The WiX Toolset Http Extension. | 9 | /// The WiX Toolset Http Extension. |
12 | /// </summary> | 10 | /// </summary> |
13 | public sealed class HttpExtensionData : ExtensionData | 11 | public sealed class HttpExtensionData : BaseExtensionData |
14 | { | 12 | { |
15 | /// <summary> | 13 | /// <summary> |
16 | /// Gets the default culture. | 14 | /// Gets the default culture. |
17 | /// </summary> | 15 | /// </summary> |
18 | /// <value>The default culture.</value> | 16 | /// <value>The default culture.</value> |
19 | public override string DefaultCulture | 17 | public override string DefaultCulture => "en-US"; |
20 | { | ||
21 | get { return "en-us"; } | ||
22 | } | ||
23 | |||
24 | /// <summary> | ||
25 | /// Gets the optional table definitions for this extension. | ||
26 | /// </summary> | ||
27 | /// <value>The optional table definitions for this extension.</value> | ||
28 | public override TableDefinitionCollection TableDefinitions | ||
29 | { | ||
30 | get | ||
31 | { | ||
32 | return HttpExtensionData.GetExtensionTableDefinitions(); | ||
33 | } | ||
34 | } | ||
35 | |||
36 | /// <summary> | ||
37 | /// Gets the library associated with this extension. | ||
38 | /// </summary> | ||
39 | /// <param name="tableDefinitions">The table definitions to use while loading the library.</param> | ||
40 | /// <returns>The loaded library.</returns> | ||
41 | public override Library GetLibrary(TableDefinitionCollection tableDefinitions) | ||
42 | { | ||
43 | return HttpExtensionData.GetExtensionLibrary(tableDefinitions); | ||
44 | } | ||
45 | 18 | ||
46 | /// <summary> | 19 | public override bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) |
47 | /// Internal mechanism to access the extension's table definitions. | ||
48 | /// </summary> | ||
49 | /// <returns>Extension's table definitions.</returns> | ||
50 | internal static TableDefinitionCollection GetExtensionTableDefinitions() | ||
51 | { | 20 | { |
52 | return ExtensionData.LoadTableDefinitionHelper(Assembly.GetExecutingAssembly(), "WixToolset.Extensions.Data.tables.xml"); | 21 | tupleDefinition = HttpTupleDefinitions.ByName(name); |
22 | return tupleDefinition != null; | ||
53 | } | 23 | } |
54 | 24 | ||
55 | /// <summary> | 25 | public override Intermediate GetLibrary(ITupleDefinitionCreator tupleDefinitions) |
56 | /// Internal mechanism to access the extension's library. | ||
57 | /// </summary> | ||
58 | /// <returns>Extension's library.</returns> | ||
59 | internal static Library GetExtensionLibrary(TableDefinitionCollection tableDefinitions) | ||
60 | { | 26 | { |
61 | return ExtensionData.LoadLibraryHelper(Assembly.GetExecutingAssembly(), "WixToolset.Extensions.Data.http.wixlib", tableDefinitions); | 27 | return Intermediate.Load(typeof(HttpExtensionData).Assembly, "WixToolset.Http.http.wixlib", tupleDefinitions); |
62 | } | 28 | } |
63 | } | 29 | } |
64 | } | 30 | } |
diff --git a/src/wixext/HttpExtensionFactory.cs b/src/wixext/HttpExtensionFactory.cs new file mode 100644 index 00000000..fa23dac6 --- /dev/null +++ b/src/wixext/HttpExtensionFactory.cs | |||
@@ -0,0 +1,18 @@ | |||
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.Http | ||
4 | { | ||
5 | using System; | ||
6 | using System.Collections.Generic; | ||
7 | using WixToolset.Extensibility; | ||
8 | |||
9 | public class HttpExtensionFactory : BaseExtensionFactory | ||
10 | { | ||
11 | protected override IEnumerable<Type> ExtensionTypes => new[] | ||
12 | { | ||
13 | typeof(HttpCompiler), | ||
14 | typeof(HttpExtensionData), | ||
15 | typeof(HttpWindowsInstallerBackendBinderExtension), | ||
16 | }; | ||
17 | } | ||
18 | } | ||
diff --git a/src/wixext/HttpWindowsInstallerBackendBinderExtension.cs b/src/wixext/HttpWindowsInstallerBackendBinderExtension.cs new file mode 100644 index 00000000..598cb275 --- /dev/null +++ b/src/wixext/HttpWindowsInstallerBackendBinderExtension.cs | |||
@@ -0,0 +1,26 @@ | |||
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.Http | ||
4 | { | ||
5 | using System.Linq; | ||
6 | using System.Xml; | ||
7 | using WixToolset.Data.WindowsInstaller; | ||
8 | using WixToolset.Extensibility; | ||
9 | |||
10 | public class HttpWindowsInstallerBackendBinderExtension : BaseWindowsInstallerBackendBinderExtension | ||
11 | { | ||
12 | private static readonly TableDefinition[] Tables = LoadTables(); | ||
13 | |||
14 | protected override TableDefinition[] TableDefinitionsForTuples => Tables; | ||
15 | |||
16 | private static TableDefinition[] LoadTables() | ||
17 | { | ||
18 | using (var resourceStream = typeof(HttpWindowsInstallerBackendBinderExtension).Assembly.GetManifestResourceStream("WixToolset.Http.tables.xml")) | ||
19 | using (var reader = XmlReader.Create(resourceStream)) | ||
20 | { | ||
21 | var tables = TableDefinitionCollection.Load(reader); | ||
22 | return tables.ToArray(); | ||
23 | } | ||
24 | } | ||
25 | } | ||
26 | } | ||
diff --git a/src/wixext/Tuples/HttpTupleDefinitions.cs b/src/wixext/Tuples/HttpTupleDefinitions.cs new file mode 100644 index 00000000..11305d2a --- /dev/null +++ b/src/wixext/Tuples/HttpTupleDefinitions.cs | |||
@@ -0,0 +1,43 @@ | |||
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.Http | ||
4 | { | ||
5 | using System; | ||
6 | using WixToolset.Data; | ||
7 | |||
8 | public enum HttpTupleDefinitionType | ||
9 | { | ||
10 | WixHttpUrlAce, | ||
11 | WixHttpUrlReservation, | ||
12 | } | ||
13 | |||
14 | public static partial class HttpTupleDefinitions | ||
15 | { | ||
16 | public static readonly Version Version = new Version("4.0.0"); | ||
17 | |||
18 | public static IntermediateTupleDefinition ByName(string name) | ||
19 | { | ||
20 | if (!Enum.TryParse(name, out HttpTupleDefinitionType type)) | ||
21 | { | ||
22 | return null; | ||
23 | } | ||
24 | |||
25 | return ByType(type); | ||
26 | } | ||
27 | |||
28 | public static IntermediateTupleDefinition ByType(HttpTupleDefinitionType type) | ||
29 | { | ||
30 | switch (type) | ||
31 | { | ||
32 | case HttpTupleDefinitionType.WixHttpUrlAce: | ||
33 | return HttpTupleDefinitions.WixHttpUrlAce; | ||
34 | |||
35 | case HttpTupleDefinitionType.WixHttpUrlReservation: | ||
36 | return HttpTupleDefinitions.WixHttpUrlReservation; | ||
37 | |||
38 | default: | ||
39 | throw new ArgumentOutOfRangeException(nameof(type)); | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | } | ||
diff --git a/src/wixext/Tuples/WixHttpUrlAceTuple.cs b/src/wixext/Tuples/WixHttpUrlAceTuple.cs new file mode 100644 index 00000000..3e0006a0 --- /dev/null +++ b/src/wixext/Tuples/WixHttpUrlAceTuple.cs | |||
@@ -0,0 +1,71 @@ | |||
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.Http | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Http.Tuples; | ||
7 | |||
8 | public static partial class HttpTupleDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateTupleDefinition WixHttpUrlAce = new IntermediateTupleDefinition( | ||
11 | HttpTupleDefinitionType.WixHttpUrlAce.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.WixHttpUrlAce), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.WixHttpUrlReservation_), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.SecurityPrincipal), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(WixHttpUrlAceTupleFields.Rights), IntermediateFieldType.Number), | ||
18 | }, | ||
19 | typeof(WixHttpUrlAceTuple)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Http.Tuples | ||
24 | { | ||
25 | using WixToolset.Data; | ||
26 | |||
27 | public enum WixHttpUrlAceTupleFields | ||
28 | { | ||
29 | WixHttpUrlAce, | ||
30 | WixHttpUrlReservation_, | ||
31 | SecurityPrincipal, | ||
32 | Rights, | ||
33 | } | ||
34 | |||
35 | public class WixHttpUrlAceTuple : IntermediateTuple | ||
36 | { | ||
37 | public WixHttpUrlAceTuple() : base(HttpTupleDefinitions.WixHttpUrlAce, null, null) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public WixHttpUrlAceTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpTupleDefinitions.WixHttpUrlAce, sourceLineNumber, id) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | public IntermediateField this[WixHttpUrlAceTupleFields index] => this.Fields[(int)index]; | ||
46 | |||
47 | public string WixHttpUrlAce | ||
48 | { | ||
49 | get => this.Fields[(int)WixHttpUrlAceTupleFields.WixHttpUrlAce].AsString(); | ||
50 | set => this.Set((int)WixHttpUrlAceTupleFields.WixHttpUrlAce, value); | ||
51 | } | ||
52 | |||
53 | public string WixHttpUrlReservation_ | ||
54 | { | ||
55 | get => this.Fields[(int)WixHttpUrlAceTupleFields.WixHttpUrlReservation_].AsString(); | ||
56 | set => this.Set((int)WixHttpUrlAceTupleFields.WixHttpUrlReservation_, value); | ||
57 | } | ||
58 | |||
59 | public string SecurityPrincipal | ||
60 | { | ||
61 | get => this.Fields[(int)WixHttpUrlAceTupleFields.SecurityPrincipal].AsString(); | ||
62 | set => this.Set((int)WixHttpUrlAceTupleFields.SecurityPrincipal, value); | ||
63 | } | ||
64 | |||
65 | public int Rights | ||
66 | { | ||
67 | get => this.Fields[(int)WixHttpUrlAceTupleFields.Rights].AsNumber(); | ||
68 | set => this.Set((int)WixHttpUrlAceTupleFields.Rights, value); | ||
69 | } | ||
70 | } | ||
71 | } \ No newline at end of file | ||
diff --git a/src/wixext/Tuples/WixHttpUrlReservationTuple.cs b/src/wixext/Tuples/WixHttpUrlReservationTuple.cs new file mode 100644 index 00000000..7a251f3d --- /dev/null +++ b/src/wixext/Tuples/WixHttpUrlReservationTuple.cs | |||
@@ -0,0 +1,79 @@ | |||
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.Http | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Http.Tuples; | ||
7 | |||
8 | public static partial class HttpTupleDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateTupleDefinition WixHttpUrlReservation = new IntermediateTupleDefinition( | ||
11 | HttpTupleDefinitionType.WixHttpUrlReservation.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.WixHttpUrlReservation), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.HandleExisting), IntermediateFieldType.Number), | ||
16 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Sddl), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Url), IntermediateFieldType.String), | ||
18 | new IntermediateFieldDefinition(nameof(WixHttpUrlReservationTupleFields.Component_), IntermediateFieldType.String), | ||
19 | }, | ||
20 | typeof(WixHttpUrlReservationTuple)); | ||
21 | } | ||
22 | } | ||
23 | |||
24 | namespace WixToolset.Http.Tuples | ||
25 | { | ||
26 | using WixToolset.Data; | ||
27 | |||
28 | public enum WixHttpUrlReservationTupleFields | ||
29 | { | ||
30 | WixHttpUrlReservation, | ||
31 | HandleExisting, | ||
32 | Sddl, | ||
33 | Url, | ||
34 | Component_, | ||
35 | } | ||
36 | |||
37 | public class WixHttpUrlReservationTuple : IntermediateTuple | ||
38 | { | ||
39 | public WixHttpUrlReservationTuple() : base(HttpTupleDefinitions.WixHttpUrlReservation, null, null) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public WixHttpUrlReservationTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpTupleDefinitions.WixHttpUrlReservation, sourceLineNumber, id) | ||
44 | { | ||
45 | } | ||
46 | |||
47 | public IntermediateField this[WixHttpUrlReservationTupleFields index] => this.Fields[(int)index]; | ||
48 | |||
49 | public string WixHttpUrlReservation | ||
50 | { | ||
51 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.WixHttpUrlReservation].AsString(); | ||
52 | set => this.Set((int)WixHttpUrlReservationTupleFields.WixHttpUrlReservation, value); | ||
53 | } | ||
54 | |||
55 | public int HandleExisting | ||
56 | { | ||
57 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.HandleExisting].AsNumber(); | ||
58 | set => this.Set((int)WixHttpUrlReservationTupleFields.HandleExisting, value); | ||
59 | } | ||
60 | |||
61 | public string Sddl | ||
62 | { | ||
63 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.Sddl].AsString(); | ||
64 | set => this.Set((int)WixHttpUrlReservationTupleFields.Sddl, value); | ||
65 | } | ||
66 | |||
67 | public string Url | ||
68 | { | ||
69 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.Url].AsString(); | ||
70 | set => this.Set((int)WixHttpUrlReservationTupleFields.Url, value); | ||
71 | } | ||
72 | |||
73 | public string Component_ | ||
74 | { | ||
75 | get => this.Fields[(int)WixHttpUrlReservationTupleFields.Component_].AsString(); | ||
76 | set => this.Set((int)WixHttpUrlReservationTupleFields.Component_, value); | ||
77 | } | ||
78 | } | ||
79 | } \ No newline at end of file | ||
diff --git a/src/wixext/WixHttpExtension.csproj b/src/wixext/WixHttpExtension.csproj deleted file mode 100644 index 74af503f..00000000 --- a/src/wixext/WixHttpExtension.csproj +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- 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. --> | ||
3 | |||
4 | |||
5 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
6 | <PropertyGroup> | ||
7 | <ProjectGuid>{AAFC3C7F-D818-4B1D-AF3F-A331EA917F3F}</ProjectGuid> | ||
8 | <AssemblyName>WixHttpExtension</AssemblyName> | ||
9 | <OutputType>Library</OutputType> | ||
10 | <RootNamespace>WixToolset.Extensions</RootNamespace> | ||
11 | </PropertyGroup> | ||
12 | <ItemGroup> | ||
13 | <Compile Include="AssemblyInfo.cs" /> | ||
14 | <Compile Include="HttpCompiler.cs" /> | ||
15 | <Compile Include="HttpConstants.cs" /> | ||
16 | <Compile Include="HttpDecompiler.cs" /> | ||
17 | <Compile Include="HttpExtensionData.cs" /> | ||
18 | <MsgGenSource Include="Data\messages.xml"> | ||
19 | <ResourcesLogicalName>$(RootNamespace).Data.Messages.resources</ResourcesLogicalName> | ||
20 | </MsgGenSource> | ||
21 | <EmbeddedFlattenedResource Include="Data\tables.xml"> | ||
22 | <LogicalName>$(RootNamespace).Data.tables.xml</LogicalName> | ||
23 | </EmbeddedFlattenedResource> | ||
24 | <EmbeddedFlattenedResource Include="Xsd\http.xsd"> | ||
25 | <LogicalName>$(RootNamespace).Xsd.http.xsd</LogicalName> | ||
26 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
27 | </EmbeddedFlattenedResource> | ||
28 | <XsdGenSource Include="Xsd\http.xsd"> | ||
29 | <CommonNamespace>WixToolset.Data.Serialize</CommonNamespace> | ||
30 | <Namespace>WixToolset.Extensions.Serialize.Http</Namespace> | ||
31 | </XsdGenSource> | ||
32 | <EmbeddedResource Include="$(OutputPath)\http.wixlib"> | ||
33 | <Link>Data\http.wixlib</Link> | ||
34 | </EmbeddedResource> | ||
35 | </ItemGroup> | ||
36 | <ItemGroup> | ||
37 | <Reference Include="System" /> | ||
38 | <Reference Include="System.Xml" /> | ||
39 | <Reference Include="System.Xml.Linq" /> | ||
40 | <ProjectReference Include="..\..\..\libs\WixToolset.Data\WixToolset.Data.csproj" /> | ||
41 | <ProjectReference Include="..\..\..\libs\WixToolset.Extensibility\WixToolset.Extensibility.csproj" /> | ||
42 | <ProjectReference Include="..\..\..\tools\wix\Wix.csproj" /> | ||
43 | <ProjectReference Include="..\wixlib\HttpExtension.wixproj"> | ||
44 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
45 | </ProjectReference> | ||
46 | </ItemGroup> | ||
47 | <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), wix.proj))\tools\WixBuild.targets" /> | ||
48 | </Project> | ||
diff --git a/src/wixext/WixToolset.Http.wixext.csproj b/src/wixext/WixToolset.Http.wixext.csproj new file mode 100644 index 00000000..c681e308 --- /dev/null +++ b/src/wixext/WixToolset.Http.wixext.csproj | |||
@@ -0,0 +1,33 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- 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. --> | ||
3 | |||
4 | <Project Sdk="Microsoft.NET.Sdk"> | ||
5 | <PropertyGroup> | ||
6 | <TargetFramework>netstandard2.0</TargetFramework> | ||
7 | <RootNamespace>WixToolset.Http</RootNamespace> | ||
8 | <Description>WiX Toolset Http Extension</Description> | ||
9 | <Title>WiX Toolset Http Extension</Title> | ||
10 | <IsTool>true</IsTool> | ||
11 | <ContentTargetFolders>build</ContentTargetFolders> | ||
12 | </PropertyGroup> | ||
13 | |||
14 | <ItemGroup> | ||
15 | <Content Include="$(MSBuildThisFileName).targets" /> | ||
16 | <Content Include="http.xsd" PackagePath="tools" /> | ||
17 | <EmbeddedResource Include="tables.xml" /> | ||
18 | <EmbeddedResource Include="$(OutputPath)..\http.wixlib" /> | ||
19 | </ItemGroup> | ||
20 | |||
21 | <ItemGroup> | ||
22 | <PackageReference Include="WixToolset.Data" Version="4.0.*" PrivateAssets="all" /> | ||
23 | <PackageReference Include="WixToolset.Extensibility" Version="4.0.*" PrivateAssets="all" /> | ||
24 | </ItemGroup> | ||
25 | |||
26 | <ItemGroup> | ||
27 | <ProjectReference Include="..\wixlib\http.wixproj" ReferenceOutputAssembly="false" Condition=" '$(NCrunch)'=='' " /> | ||
28 | </ItemGroup> | ||
29 | |||
30 | <ItemGroup> | ||
31 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="all" /> | ||
32 | </ItemGroup> | ||
33 | </Project> | ||
diff --git a/src/wixext/WixToolset.Http.wixext.targets b/src/wixext/WixToolset.Http.wixext.targets new file mode 100644 index 00000000..254b0010 --- /dev/null +++ b/src/wixext/WixToolset.Http.wixext.targets | |||
@@ -0,0 +1,11 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- 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. --> | ||
3 | |||
4 | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
5 | <PropertyGroup> | ||
6 | <WixToolsetHttpWixextPath Condition=" '$(WixToolsetHttpWixextPath)' == '' ">$(MSBuildThisFileDirectory)..\tools\WixToolset.Http.wixext.dll</WixToolsetHttpWixextPath> | ||
7 | </PropertyGroup> | ||
8 | <ItemGroup> | ||
9 | <WixExtension Include="$(WixToolsetHttpWixextPath)" /> | ||
10 | </ItemGroup> | ||
11 | </Project> | ||
diff --git a/src/wixext/messages.xml b/src/wixext/messages.xml deleted file mode 100644 index 6dcdc366..00000000 --- a/src/wixext/messages.xml +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- 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. --> | ||
3 | |||
4 | |||
5 | <Messages Namespace="WixToolset.Extensions" Resources="Data.Messages" xmlns="http://schemas.microsoft.com/genmsgs/2004/07/messages"> | ||
6 | <Class Name="HttpErrors" ContainerName="HttpErrorEventArgs" BaseContainerName="MessageEventArgs" Level="Error"> | ||
7 | <Message Id="NoSecuritySpecified" Number="6701"> | ||
8 | <Instance> | ||
9 | The UrlReservation element doesn't identify the security for the reservation. You must either specify the Sddl attribute, or provide child UrlAce elements. | ||
10 | </Instance> | ||
11 | </Message> | ||
12 | </Class> | ||
13 | </Messages> | ||