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.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs
index e2a5721e..56f6322a 100644
--- a/src/WixToolset.Core/Compiler.cs
+++ b/src/WixToolset.Core/Compiler.cs
@@ -5728,11 +5728,6 @@ namespace WixToolset.Core
5728 id = this.Core.CreateIdentifier("fil", directoryId, name ?? shortName); 5728 id = this.Core.CreateIdentifier("fil", directoryId, name ?? shortName);
5729 } 5729 }
5730 5730
5731 if (!this.compilingModule && CompilerConstants.IntegerNotSet == diskId)
5732 {
5733 diskId = 1; // default to first Media
5734 }
5735
5736 if (null != defaultVersion && null != companionFile) 5731 if (null != defaultVersion && null != companionFile)
5737 { 5732 {
5738 this.Core.Write(ErrorMessages.IllegalAttributeWithOtherAttribute(sourceLineNumbers, node.Name.LocalName, "DefaultVersion", "CompanionFile", companionFile)); 5733 this.Core.Write(ErrorMessages.IllegalAttributeWithOtherAttribute(sourceLineNumbers, node.Name.LocalName, "DefaultVersion", "CompanionFile", companionFile));
@@ -5914,6 +5909,11 @@ namespace WixToolset.Core
5914 } 5909 }
5915 } 5910 }
5916 5911
5912 if (CompilerConstants.IntegerNotSet != diskId)
5913 {
5914 this.Core.CreateSimpleReference(sourceLineNumbers, TupleDefinitions.Media, diskId.ToString(CultureInfo.InvariantCulture.NumberFormat));
5915 }
5916
5917 // If this component does not have a companion file this file is a possible keypath. 5917 // If this component does not have a companion file this file is a possible keypath.
5918 possibleKeyPath = null; 5918 possibleKeyPath = null;
5919 if (null == companionFile) 5919 if (null == companionFile)