summaryrefslogtreecommitdiff
path: root/src/wix/WixToolset.Core/Compile/CompilerPayload.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wix/WixToolset.Core/Compile/CompilerPayload.cs')
-rw-r--r--src/wix/WixToolset.Core/Compile/CompilerPayload.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wix/WixToolset.Core/Compile/CompilerPayload.cs b/src/wix/WixToolset.Core/Compile/CompilerPayload.cs
index e3dfc342..40205f19 100644
--- a/src/wix/WixToolset.Core/Compile/CompilerPayload.cs
+++ b/src/wix/WixToolset.Core/Compile/CompilerPayload.cs
@@ -207,6 +207,11 @@ namespace WixToolset.Core
207 this.DownloadUrl = null; 207 this.DownloadUrl = null;
208 } 208 }
209 209
210 if (String.IsNullOrEmpty(this.Name) && String.IsNullOrEmpty(this.SourceFile))
211 {
212 this.Core.Write(ErrorMessages.ExpectedAttributes(this.SourceLineNumbers, this.Element.Name.LocalName, "Name", "SourceFile"));
213 }
214
210 if (!this.Core.EncounteredError) 215 if (!this.Core.EncounteredError)
211 { 216 {
212 symbol = this.Core.AddSymbol(new WixBundlePayloadSymbol(this.SourceLineNumbers, this.Id) 217 symbol = this.Core.AddSymbol(new WixBundlePayloadSymbol(this.SourceLineNumbers, this.Id)