aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Linker.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/Linker.cs')
-rw-r--r--src/WixToolset.Core/Linker.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/WixToolset.Core/Linker.cs b/src/WixToolset.Core/Linker.cs
index 3281cbd0..f5461bbc 100644
--- a/src/WixToolset.Core/Linker.cs
+++ b/src/WixToolset.Core/Linker.cs
@@ -106,7 +106,14 @@ namespace WixToolset.Core
106 // Must have found the entry section by now. 106 // Must have found the entry section by now.
107 if (null == find.EntrySection) 107 if (null == find.EntrySection)
108 { 108 {
109 throw new WixException(ErrorMessages.MissingEntrySection(this.Context.ExpectedOutputType.ToString())); 109 if (this.Context.ExpectedOutputType == OutputType.IntermediatePostLink || this.Context.ExpectedOutputType == OutputType.Unknown)
110 {
111 throw new WixException(ErrorMessages.MissingEntrySection());
112 }
113 else
114 {
115 throw new WixException(ErrorMessages.MissingEntrySection(this.Context.ExpectedOutputType.ToString()));
116 }
110 } 117 }
111 118
112 // Add the missing standard action and directory symbols. 119 // Add the missing standard action and directory symbols.