aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Compiler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/Compiler.cs')
-rw-r--r--src/WixToolset.Core/Compiler.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs
index ae7f7624..d6c96b28 100644
--- a/src/WixToolset.Core/Compiler.cs
+++ b/src/WixToolset.Core/Compiler.cs
@@ -5358,6 +5358,7 @@ namespace WixToolset.Core
5358 { 5358 {
5359 var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node); 5359 var sourceLineNumbers = Preprocessor.GetSourceLineNumbers(node);
5360 var id = CompilerConstants.IntegerNotSet; 5360 var id = CompilerConstants.IntegerNotSet;
5361 string message = null;
5361 5362
5362 foreach (var attrib in node.Attributes()) 5363 foreach (var attrib in node.Attributes())
5363 { 5364 {
@@ -5368,6 +5369,9 @@ namespace WixToolset.Core
5368 case "Id": 5369 case "Id":
5369 id = this.Core.GetAttributeIntegerValue(sourceLineNumbers, attrib, 0, Int16.MaxValue); 5370 id = this.Core.GetAttributeIntegerValue(sourceLineNumbers, attrib, 0, Int16.MaxValue);
5370 break; 5371 break;
5372 case "Message":
5373 message = this.Core.GetAttributeValue(sourceLineNumbers, attrib, EmptyRule.CanBeEmpty);
5374 break;
5371 default: 5375 default:
5372 this.Core.UnexpectedAttribute(node, attrib); 5376 this.Core.UnexpectedAttribute(node, attrib);
5373 break; 5377 break;
@@ -5385,13 +5389,18 @@ namespace WixToolset.Core
5385 id = CompilerConstants.IllegalInteger; 5389 id = CompilerConstants.IllegalInteger;
5386 } 5390 }
5387 5391
5392 if (String.IsNullOrEmpty(message))
5393 {
5394 message = Common.GetInnerText(node);
5395 }
5396
5388 this.Core.ParseForExtensionElements(node); 5397 this.Core.ParseForExtensionElements(node);
5389 5398
5390 if (!this.Core.EncounteredError) 5399 if (!this.Core.EncounteredError)
5391 { 5400 {
5392 this.Core.AddTuple(new ErrorTuple(sourceLineNumbers, new Identifier(AccessModifier.Public, id)) 5401 this.Core.AddTuple(new ErrorTuple(sourceLineNumbers, new Identifier(AccessModifier.Public, id))
5393 { 5402 {
5394 Message = Common.GetInnerText(node) 5403 Message = message
5395 }); 5404 });
5396 } 5405 }
5397 } 5406 }