diff options
Diffstat (limited to 'src/WixToolset.Core/Linker.cs')
-rw-r--r-- | src/WixToolset.Core/Linker.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/WixToolset.Core/Linker.cs b/src/WixToolset.Core/Linker.cs index 6ef252b7..f05aabd1 100644 --- a/src/WixToolset.Core/Linker.cs +++ b/src/WixToolset.Core/Linker.cs | |||
@@ -70,6 +70,12 @@ namespace WixToolset.Core | |||
70 | extension.PreLink(this.Context); | 70 | extension.PreLink(this.Context); |
71 | } | 71 | } |
72 | 72 | ||
73 | var invalidIntermediates = this.Context.Intermediates.Where(i => !i.HasLevel(Data.IntermediateLevels.Compiled)); | ||
74 | if (invalidIntermediates.Any()) | ||
75 | { | ||
76 | this.Messaging.Write(ErrorMessages.IntermediatesMustBeCompiled(String.Join(", ", invalidIntermediates.Select(i => i.Id)))); | ||
77 | } | ||
78 | |||
73 | Intermediate intermediate = null; | 79 | Intermediate intermediate = null; |
74 | try | 80 | try |
75 | { | 81 | { |
@@ -564,7 +570,7 @@ namespace WixToolset.Core | |||
564 | var collate = new CollateLocalizationsCommand(this.Messaging, localizations); | 570 | var collate = new CollateLocalizationsCommand(this.Messaging, localizations); |
565 | var localizationsByCulture = collate.Execute(); | 571 | var localizationsByCulture = collate.Execute(); |
566 | 572 | ||
567 | intermediate = new Intermediate(resolvedSection.Id, new[] { resolvedSection }, localizationsByCulture); | 573 | intermediate = new Intermediate(resolvedSection.Id, Data.IntermediateLevels.Linked, new[] { resolvedSection }, localizationsByCulture); |
568 | 574 | ||
569 | #if MOVE_TO_BACKEND | 575 | #if MOVE_TO_BACKEND |
570 | this.CheckOutputConsistency(output); | 576 | this.CheckOutputConsistency(output); |