aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-05-22 14:48:20 -0700
committerRob Mensching <rob@firegiant.com>2019-05-23 16:02:37 -0700
commit3859a8cd7d6001f7b49c22065e33242ddb486fbb (patch)
tree5e347f24751b0776bf60b311f4f6548030084625 /src/WixToolset.Core.WindowsInstaller
parentfcba5d0d1cdd052ed0c960d435d5dcb62d22840d (diff)
downloadwix-3859a8cd7d6001f7b49c22065e33242ddb486fbb.tar.gz
wix-3859a8cd7d6001f7b49c22065e33242ddb486fbb.tar.bz2
wix-3859a8cd7d6001f7b49c22065e33242ddb486fbb.zip
Adopt "Ref" as reference convention over "_"
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/CabinetBuilder.cs2
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs12
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs46
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs6
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs2
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs4
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs26
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/UpdateMediaSequencesCommand.cs2
8 files changed, 49 insertions, 51 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CabinetBuilder.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CabinetBuilder.cs
index 3725b480..24011214 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/CabinetBuilder.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/CabinetBuilder.cs
@@ -163,8 +163,6 @@ namespace WixToolset.Core.WindowsInstaller.Bind
163 163
164 // create the cabinet file 164 // create the cabinet file
165 var cabinetPath = Path.GetFullPath(cabinetWorkItem.CabinetFile); 165 var cabinetPath = Path.GetFullPath(cabinetWorkItem.CabinetFile);
166 string cabinetFileName = Path.GetFileName(cabinetWorkItem.CabinetFile);
167 string cabinetDirectory = Path.GetDirectoryName(cabinetWorkItem.CabinetFile);
168 166
169 var files = cabinetWorkItem.FileFacades 167 var files = cabinetWorkItem.FileFacades
170 .Select(facade => facade.Hash == null ? 168 .Select(facade => facade.Hash == null ?
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs
index 414984de..f66ff375 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/CalculateComponentGuids.cs
@@ -87,7 +87,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
87 } 87 }
88 88
89 var targetName = Common.GetName(row.DefaultDir, false, true); 89 var targetName = Common.GetName(row.DefaultDir, false, true);
90 targetPathsByDirectoryId.Add(row.Id.Id, new ResolvedDirectory(row.Directory_Parent, targetName)); 90 targetPathsByDirectoryId.Add(row.Id.Id, new ResolvedDirectory(row.ParentDirectoryRef, targetName));
91 } 91 }
92 } 92 }
93 93
@@ -112,10 +112,10 @@ namespace WixToolset.Core.WindowsInstaller.Bind
112 112
113 foreach (var file in files) 113 foreach (var file in files)
114 { 114 {
115 if (!filesByComponentId.TryGetValue(file.Component_, out var componentFiles)) 115 if (!filesByComponentId.TryGetValue(file.ComponentRef, out var componentFiles))
116 { 116 {
117 componentFiles = new List<FileTuple>(); 117 componentFiles = new List<FileTuple>();
118 filesByComponentId.Add(file.Component_, componentFiles); 118 filesByComponentId.Add(file.ComponentRef, componentFiles);
119 } 119 }
120 120
121 componentFiles.Add(file); 121 componentFiles.Add(file);
@@ -132,8 +132,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind
132 if (fileRow.Id.Id == componentTuple.KeyPath) 132 if (fileRow.Id.Id == componentTuple.KeyPath)
133 { 133 {
134 // calculate the key file's canonical target path 134 // calculate the key file's canonical target path
135 string directoryPath = PathResolver.GetDirectoryPath(targetPathsByDirectoryId, componentIdGenSeeds, componentTuple.Directory_, true); 135 string directoryPath = PathResolver.GetDirectoryPath(targetPathsByDirectoryId, componentIdGenSeeds, componentTuple.DirectoryRef, true);
136 string fileName = Common.GetName(fileRow.LongFileName, false, true).ToLowerInvariant(); 136 string fileName = Common.GetName(fileRow.Name, false, true).ToLowerInvariant();
137 path = Path.Combine(directoryPath, fileName); 137 path = Path.Combine(directoryPath, fileName);
138 138
139 // find paths that are not canonicalized 139 // find paths that are not canonicalized
@@ -144,7 +144,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
144 path.StartsWith(@"StartMenuFolder\programs", StringComparison.Ordinal) || 144 path.StartsWith(@"StartMenuFolder\programs", StringComparison.Ordinal) ||
145 path.StartsWith(@"WindowsFolder\fonts", StringComparison.Ordinal)) 145 path.StartsWith(@"WindowsFolder\fonts", StringComparison.Ordinal))
146 { 146 {
147 this.Messaging.Write(ErrorMessages.IllegalPathForGeneratedComponentGuid(componentTuple.SourceLineNumbers, fileRow.Component_, path)); 147 this.Messaging.Write(ErrorMessages.IllegalPathForGeneratedComponentGuid(componentTuple.SourceLineNumbers, fileRow.ComponentRef, path));
148 } 148 }
149 149
150 // if component has more than one file, the key path must be versioned 150 // if component has more than one file, the key path must be versioned
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
index 3d9fcf48..65958d0a 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
@@ -196,7 +196,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
196 196
197 var table = output.EnsureTable(this.TableDefinitions["BBControl"]); 197 var table = output.EnsureTable(this.TableDefinitions["BBControl"]);
198 var row = table.CreateRow(tuple.SourceLineNumbers); 198 var row = table.CreateRow(tuple.SourceLineNumbers);
199 row[0] = tuple.Billboard_; 199 row[0] = tuple.BillboardRef;
200 row[1] = tuple.BBControl; 200 row[1] = tuple.BBControl;
201 row[2] = tuple.Type; 201 row[2] = tuple.Type;
202 row[3] = tuple.X; 202 row[3] = tuple.X;
@@ -234,7 +234,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
234 234
235 var table = output.EnsureTable(this.TableDefinitions["Control"]); 235 var table = output.EnsureTable(this.TableDefinitions["Control"]);
236 var row = table.CreateRow(tuple.SourceLineNumbers); 236 var row = table.CreateRow(tuple.SourceLineNumbers);
237 row[0] = tuple.Dialog_; 237 row[0] = tuple.DialogRef;
238 row[1] = tuple.Control; 238 row[1] = tuple.Control;
239 row[2] = tuple.Type; 239 row[2] = tuple.Type;
240 row[3] = tuple.X; 240 row[3] = tuple.X;
@@ -243,7 +243,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
243 row[6] = tuple.Height; 243 row[6] = tuple.Height;
244 row[7] = attributes; 244 row[7] = attributes;
245 row[8] = text; 245 row[8] = text;
246 row[9] = tuple.Control_Next; 246 row[9] = tuple.NextControlRef;
247 row[10] = tuple.Help; 247 row[10] = tuple.Help;
248 } 248 }
249 249
@@ -266,7 +266,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
266 var row = table.CreateRow(tuple.SourceLineNumbers); 266 var row = table.CreateRow(tuple.SourceLineNumbers);
267 row[0] = tuple.Id.Id; 267 row[0] = tuple.Id.Id;
268 row[1] = tuple.ComponentId; 268 row[1] = tuple.ComponentId;
269 row[2] = tuple.Directory_; 269 row[2] = tuple.DirectoryRef;
270 row[3] = attributes; 270 row[3] = attributes;
271 row[4] = tuple.Condition; 271 row[4] = tuple.Condition;
272 row[5] = tuple.KeyPath; 272 row[5] = tuple.KeyPath;
@@ -331,9 +331,9 @@ namespace WixToolset.Core.WindowsInstaller.Bind
331 row[4] = tuple.Height; 331 row[4] = tuple.Height;
332 row[5] = attributes; 332 row[5] = attributes;
333 row[6] = tuple.Title; 333 row[6] = tuple.Title;
334 row[7] = tuple.Control_First; 334 row[7] = tuple.FirstControlRef;
335 row[8] = tuple.Control_Default; 335 row[8] = tuple.DefaultControlRef;
336 row[9] = tuple.Control_Cancel; 336 row[9] = tuple.CancelControlRef;
337 } 337 }
338 338
339 private void AddDirectoryTuple(DirectoryTuple tuple, Output output) 339 private void AddDirectoryTuple(DirectoryTuple tuple, Output output)
@@ -341,7 +341,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
341 var table = output.EnsureTable(this.TableDefinitions["Directory"]); 341 var table = output.EnsureTable(this.TableDefinitions["Directory"]);
342 var row = table.CreateRow(tuple.SourceLineNumbers); 342 var row = table.CreateRow(tuple.SourceLineNumbers);
343 row[0] = tuple.Id.Id; 343 row[0] = tuple.Id.Id;
344 row[1] = tuple.Directory_Parent; 344 row[1] = tuple.ParentDirectoryRef;
345 row[2] = tuple.DefaultDir; 345 row[2] = tuple.DefaultDir;
346 } 346 }
347 347
@@ -380,7 +380,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
380 row[0] = tuple.Id.Id; 380 row[0] = tuple.Id.Id;
381 row[1] = String.Concat(action, uninstall, system, tuple.Name); 381 row[1] = String.Concat(action, uninstall, system, tuple.Name);
382 row[2] = value; 382 row[2] = value;
383 row[3] = tuple.Component_; 383 row[3] = tuple.ComponentRef;
384 } 384 }
385 385
386 private void AddFeatureTuple(FeatureTuple tuple, Output output) 386 private void AddFeatureTuple(FeatureTuple tuple, Output output)
@@ -394,12 +394,12 @@ namespace WixToolset.Core.WindowsInstaller.Bind
394 var table = output.EnsureTable(this.TableDefinitions["Feature"]); 394 var table = output.EnsureTable(this.TableDefinitions["Feature"]);
395 var row = table.CreateRow(tuple.SourceLineNumbers); 395 var row = table.CreateRow(tuple.SourceLineNumbers);
396 row[0] = tuple.Id.Id; 396 row[0] = tuple.Id.Id;
397 row[1] = tuple.Feature_Parent; 397 row[1] = tuple.ParentFeatureRef;
398 row[2] = tuple.Title; 398 row[2] = tuple.Title;
399 row[3] = tuple.Description; 399 row[3] = tuple.Description;
400 row[4] = tuple.Display; 400 row[4] = tuple.Display;
401 row[5] = tuple.Level; 401 row[5] = tuple.Level;
402 row[6] = tuple.Directory_; 402 row[6] = tuple.DirectoryRef;
403 row[7] = attributes; 403 row[7] = attributes;
404 } 404 }
405 405
@@ -408,8 +408,8 @@ namespace WixToolset.Core.WindowsInstaller.Bind
408 var table = output.EnsureTable(this.TableDefinitions["File"]); 408 var table = output.EnsureTable(this.TableDefinitions["File"]);
409 var row = (FileRow)table.CreateRow(tuple.SourceLineNumbers); 409 var row = (FileRow)table.CreateRow(tuple.SourceLineNumbers);
410 row.File = tuple.Id.Id; 410 row.File = tuple.Id.Id;
411 row.Component = tuple.Component_; 411 row.Component = tuple.ComponentRef;
412 row.FileName = GetMsiFilenameValue(tuple.ShortFileName, tuple.LongFileName); 412 row.FileName = GetMsiFilenameValue(tuple.ShortName, tuple.Name);
413 row.FileSize = tuple.FileSize; 413 row.FileSize = tuple.FileSize;
414 row.Version = tuple.Version; 414 row.Version = tuple.Version;
415 row.Language = tuple.Language; 415 row.Language = tuple.Language;
@@ -437,7 +437,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
437 row[4] = tuple.Key; 437 row[4] = tuple.Key;
438 row[5] = tuple.Value; 438 row[5] = tuple.Value;
439 row[6] = tuple.Action; 439 row[6] = tuple.Action;
440 row[7] = tuple.Component_; 440 row[7] = tuple.ComponentRef;
441 } 441 }
442 442
443 private void AddMediaTuple(MediaTuple tuple, Output output) 443 private void AddMediaTuple(MediaTuple tuple, Output output)
@@ -499,7 +499,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
499 row[2] = events; 499 row[2] = events;
500 row[3] = tuple.ConfigType; 500 row[3] = tuple.ConfigType;
501 row[4] = tuple.Argument; 501 row[4] = tuple.Argument;
502 row[5] = tuple.Component_; 502 row[5] = tuple.ComponentRef;
503 } 503 }
504 504
505 private void AddMsiServiceConfigFailureActionsTuple(MsiServiceConfigFailureActionsTuple tuple, Output output) 505 private void AddMsiServiceConfigFailureActionsTuple(MsiServiceConfigFailureActionsTuple tuple, Output output)
@@ -518,7 +518,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
518 row[5] = tuple.Command ?? "[~]"; 518 row[5] = tuple.Command ?? "[~]";
519 row[6] = tuple.Actions; 519 row[6] = tuple.Actions;
520 row[7] = tuple.DelayActions; 520 row[7] = tuple.DelayActions;
521 row[8] = tuple.Component_; 521 row[8] = tuple.ComponentRef;
522 } 522 }
523 523
524 private void AddMoveFileTuple(MoveFileTuple tuple, Output output) 524 private void AddMoveFileTuple(MoveFileTuple tuple, Output output)
@@ -526,7 +526,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
526 var table = output.EnsureTable(this.TableDefinitions["MoveFile"]); 526 var table = output.EnsureTable(this.TableDefinitions["MoveFile"]);
527 var row = table.CreateRow(tuple.SourceLineNumbers); 527 var row = table.CreateRow(tuple.SourceLineNumbers);
528 row[0] = tuple.Id.Id; 528 row[0] = tuple.Id.Id;
529 row[1] = tuple.Component_; 529 row[1] = tuple.ComponentRef;
530 row[2] = tuple.SourceName; 530 row[2] = tuple.SourceName;
531 row[3] = tuple.DestName; 531 row[3] = tuple.DestName;
532 row[4] = tuple.SourceFolder; 532 row[4] = tuple.SourceFolder;
@@ -555,7 +555,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
555 var table = output.EnsureTable(this.TableDefinitions["RemoveFile"]); 555 var table = output.EnsureTable(this.TableDefinitions["RemoveFile"]);
556 var row = table.CreateRow(tuple.SourceLineNumbers); 556 var row = table.CreateRow(tuple.SourceLineNumbers);
557 row[0] = tuple.Id.Id; 557 row[0] = tuple.Id.Id;
558 row[1] = tuple.Component_; 558 row[1] = tuple.ComponentRef;
559 row[2] = tuple.FileName; 559 row[2] = tuple.FileName;
560 row[3] = tuple.DirProperty; 560 row[3] = tuple.DirProperty;
561 row[4] = installMode; 561 row[4] = installMode;
@@ -610,7 +610,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
610 row[2] = tuple.Key; 610 row[2] = tuple.Key;
611 row[3] = tuple.Name; 611 row[3] = tuple.Name;
612 row[4] = value; 612 row[4] = value;
613 row[5] = tuple.Component_; 613 row[5] = tuple.ComponentRef;
614 } 614 }
615 615
616 private void AddRegLocatorTuple(RegLocatorTuple tuple, Output output) 616 private void AddRegLocatorTuple(RegLocatorTuple tuple, Output output)
@@ -637,7 +637,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
637 row[1] = tuple.Root; 637 row[1] = tuple.Root;
638 row[2] = tuple.Key; 638 row[2] = tuple.Key;
639 row[3] = tuple.Name; 639 row[3] = tuple.Name;
640 row[4] = tuple.Component_; 640 row[4] = tuple.ComponentRef;
641 } 641 }
642 else // Registry table is used to remove registry keys on uninstall. 642 else // Registry table is used to remove registry keys on uninstall.
643 { 643 {
@@ -647,7 +647,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
647 row[1] = tuple.Root; 647 row[1] = tuple.Root;
648 row[2] = tuple.Key; 648 row[2] = tuple.Key;
649 row[3] = tuple.Name; 649 row[3] = tuple.Name;
650 row[5] = tuple.Component_; 650 row[5] = tuple.ComponentRef;
651 } 651 }
652 } 652 }
653 653
@@ -667,7 +667,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
667 row[2] = events; 667 row[2] = events;
668 row[3] = tuple.Arguments; 668 row[3] = tuple.Arguments;
669 row[4] = tuple.Wait; 669 row[4] = tuple.Wait;
670 row[5] = tuple.Component_; 670 row[5] = tuple.ComponentRef;
671 } 671 }
672 672
673 private void AddServiceInstallTuple(ServiceInstallTuple tuple, Output output) 673 private void AddServiceInstallTuple(ServiceInstallTuple tuple, Output output)
@@ -691,7 +691,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
691 row[8] = tuple.StartName; 691 row[8] = tuple.StartName;
692 row[9] = tuple.Password; 692 row[9] = tuple.Password;
693 row[10] = tuple.Arguments; 693 row[10] = tuple.Arguments;
694 row[11] = tuple.Component_; 694 row[11] = tuple.ComponentRef;
695 row[12] = tuple.Description; 695 row[12] = tuple.Description;
696 } 696 }
697 697
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs
index b5e5069a..e6c089a1 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs
@@ -28,17 +28,17 @@ namespace WixToolset.Core.WindowsInstaller.Bind
28 { 28 {
29 if (wixPropertyRow.Admin) 29 if (wixPropertyRow.Admin)
30 { 30 {
31 adminProperties.Add(wixPropertyRow.Property_); 31 adminProperties.Add(wixPropertyRow.PropertyRef);
32 } 32 }
33 33
34 if (wixPropertyRow.Hidden) 34 if (wixPropertyRow.Hidden)
35 { 35 {
36 hiddenProperties.Add(wixPropertyRow.Property_); 36 hiddenProperties.Add(wixPropertyRow.PropertyRef);
37 } 37 }
38 38
39 if (wixPropertyRow.Secure) 39 if (wixPropertyRow.Secure)
40 { 40 {
41 secureProperties.Add(wixPropertyRow.Property_); 41 secureProperties.Add(wixPropertyRow.PropertyRef);
42 } 42 }
43 } 43 }
44 44
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs
index 85567471..f1a6653c 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs
@@ -105,7 +105,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
105 fileRow.Compressed = wixMergeRow.FileCompression; 105 fileRow.Compressed = wixMergeRow.FileCompression;
106 106
107 var wixFileRow = new WixFileTuple(wixMergeRow.SourceLineNumbers); 107 var wixFileRow = new WixFileTuple(wixMergeRow.SourceLineNumbers);
108 wixFileRow.Directory_ = record[2]; 108 wixFileRow.DirectoryRef = record[2];
109 wixFileRow.DiskId = wixMergeRow.DiskId; 109 wixFileRow.DiskId = wixMergeRow.DiskId;
110 wixFileRow.PatchGroup = -1; 110 wixFileRow.PatchGroup = -1;
111 wixFileRow.Source = new IntermediateFieldPathValue { Path = Path.Combine(this.IntermediateFolder, wixMergeRow.Id.Id, record[1]) }; 111 wixFileRow.Source = new IntermediateFieldPathValue { Path = Path.Combine(this.IntermediateFolder, wixMergeRow.Id.Id, record[1]) };
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs
index 3b7627c8..db85a6fa 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/GetFileFacadesCommand.cs
@@ -62,7 +62,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
62 case SymbolPathType.Component: 62 case SymbolPathType.Component:
63 if (null == filesByComponent) 63 if (null == filesByComponent)
64 { 64 {
65 filesByComponent = facades.ToLookup(f => f.File.Component_); 65 filesByComponent = facades.ToLookup(f => f.File.ComponentRef);
66 } 66 }
67 67
68 foreach (var facade in filesByComponent[row.SymbolId]) 68 foreach (var facade in filesByComponent[row.SymbolId])
@@ -74,7 +74,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
74 case SymbolPathType.Directory: 74 case SymbolPathType.Directory:
75 if (null == filesByDirectory) 75 if (null == filesByDirectory)
76 { 76 {
77 filesByDirectory = facades.ToLookup(f => f.WixFile.Directory_); 77 filesByDirectory = facades.ToLookup(f => f.WixFile.DirectoryRef);
78 } 78 }
79 79
80 foreach (var facade in filesByDirectory[row.SymbolId]) 80 foreach (var facade in filesByDirectory[row.SymbolId])
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs
index c8451a1e..0d15bf2e 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs
@@ -53,7 +53,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
53 var assemblyNameTuples = new Dictionary<string, MsiAssemblyNameTuple>(); 53 var assemblyNameTuples = new Dictionary<string, MsiAssemblyNameTuple>();
54 foreach (var assemblyTuple in this.Section.Tuples.OfType<MsiAssemblyNameTuple>()) 54 foreach (var assemblyTuple in this.Section.Tuples.OfType<MsiAssemblyNameTuple>())
55 { 55 {
56 assemblyNameTuples.Add(assemblyTuple.Component_ + "/" + assemblyTuple.Name, assemblyTuple); 56 assemblyNameTuples.Add(assemblyTuple.ComponentRef + "/" + assemblyTuple.Name, assemblyTuple);
57 } 57 }
58 58
59 FileInfo fileInfo = null; 59 FileInfo fileInfo = null;
@@ -79,7 +79,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
79 79
80 if (!fileInfo.Exists) 80 if (!fileInfo.Exists)
81 { 81 {
82 this.Messaging.Write(ErrorMessages.CannotFindFile(file.File.SourceLineNumbers, file.File.Id.Id, file.File.LongFileName, file.WixFile.Source.Path)); 82 this.Messaging.Write(ErrorMessages.CannotFindFile(file.File.SourceLineNumbers, file.File.Id.Id, file.File.Name, file.WixFile.Source.Path));
83 return; 83 return;
84 } 84 }
85 85
@@ -162,7 +162,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
162 this.Section.Tuples.Add(file.Hash); 162 this.Section.Tuples.Add(file.Hash);
163 } 163 }
164 164
165 file.Hash.File_ = file.File.Id.Id; 165 file.Hash.FileRef = file.File.Id.Id;
166 file.Hash.Options = 0; 166 file.Hash.Options = 0;
167 file.Hash.HashPart1 = hash[0]; 167 file.Hash.HashPart1 = hash[0];
168 file.Hash.HashPart2 = hash[1]; 168 file.Hash.HashPart2 = hash[1];
@@ -243,9 +243,9 @@ namespace WixToolset.Core.WindowsInstaller.Bind
243 { 243 {
244 this.SetMsiAssemblyName(assemblyNameTuples, file, "publicKeyToken", assemblyName.PublicKeyToken); 244 this.SetMsiAssemblyName(assemblyNameTuples, file, "publicKeyToken", assemblyName.PublicKeyToken);
245 } 245 }
246 else if (file.WixFile.File_AssemblyApplication == null) 246 else if (file.WixFile.AssemblyApplicationFileRef == null)
247 { 247 {
248 throw new WixException(ErrorMessages.GacAssemblyNoStrongName(file.File.SourceLineNumbers, fileInfo.FullName, file.File.Component_)); 248 throw new WixException(ErrorMessages.GacAssemblyNoStrongName(file.File.SourceLineNumbers, fileInfo.FullName, file.File.ComponentRef));
249 } 249 }
250 250
251 if (!String.IsNullOrEmpty(assemblyName.FileVersion)) 251 if (!String.IsNullOrEmpty(assemblyName.FileVersion))
@@ -269,10 +269,10 @@ namespace WixToolset.Core.WindowsInstaller.Bind
269 // TODO: Consider passing in the this.FileFacades as an indexed collection instead of searching through 269 // TODO: Consider passing in the this.FileFacades as an indexed collection instead of searching through
270 // all files like this. Even though this is a rare case it looks like we might be able to index the 270 // all files like this. Even though this is a rare case it looks like we might be able to index the
271 // file earlier. 271 // file earlier.
272 var fileManifest = this.FileFacades.FirstOrDefault(r => r.File.Id.Id.Equals(file.WixFile.File_AssemblyManifest, StringComparison.Ordinal)); 272 var fileManifest = this.FileFacades.FirstOrDefault(r => r.File.Id.Id.Equals(file.WixFile.AssemblyManifestFileRef, StringComparison.Ordinal));
273 if (null == fileManifest) 273 if (null == fileManifest)
274 { 274 {
275 this.Messaging.Write(ErrorMessages.MissingManifestForWin32Assembly(file.File.SourceLineNumbers, file.File.Id.Id, file.WixFile.File_AssemblyManifest)); 275 this.Messaging.Write(ErrorMessages.MissingManifestForWin32Assembly(file.File.SourceLineNumbers, file.File.Id.Id, file.WixFile.AssemblyManifestFileRef));
276 } 276 }
277 277
278 try 278 try
@@ -324,24 +324,24 @@ namespace WixToolset.Core.WindowsInstaller.Bind
324 // check for null value (this can occur when grabbing the file version from an assembly without one) 324 // check for null value (this can occur when grabbing the file version from an assembly without one)
325 if (String.IsNullOrEmpty(value)) 325 if (String.IsNullOrEmpty(value))
326 { 326 {
327 this.Messaging.Write(WarningMessages.NullMsiAssemblyNameValue(file.File.SourceLineNumbers, file.File.Component_, name)); 327 this.Messaging.Write(WarningMessages.NullMsiAssemblyNameValue(file.File.SourceLineNumbers, file.File.ComponentRef, name));
328 } 328 }
329 else 329 else
330 { 330 {
331 // if the assembly will be GAC'd and the name in the file table doesn't match the name in the MsiAssemblyName table, error because the install will fail. 331 // if the assembly will be GAC'd and the name in the file table doesn't match the name in the MsiAssemblyName table, error because the install will fail.
332 if ("name" == name && FileAssemblyType.DotNetAssembly == file.WixFile.AssemblyType && 332 if ("name" == name && FileAssemblyType.DotNetAssembly == file.WixFile.AssemblyType &&
333 String.IsNullOrEmpty(file.WixFile.File_AssemblyApplication) && 333 String.IsNullOrEmpty(file.WixFile.AssemblyApplicationFileRef) &&
334 !String.Equals(Path.GetFileNameWithoutExtension(file.File.LongFileName), value, StringComparison.OrdinalIgnoreCase)) 334 !String.Equals(Path.GetFileNameWithoutExtension(file.File.Name), value, StringComparison.OrdinalIgnoreCase))
335 { 335 {
336 this.Messaging.Write(ErrorMessages.GACAssemblyIdentityWarning(file.File.SourceLineNumbers, Path.GetFileNameWithoutExtension(file.File.LongFileName), value)); 336 this.Messaging.Write(ErrorMessages.GACAssemblyIdentityWarning(file.File.SourceLineNumbers, Path.GetFileNameWithoutExtension(file.File.Name), value));
337 } 337 }
338 338
339 // override directly authored value 339 // override directly authored value
340 var lookup = String.Concat(file.File.Component_, "/", name); 340 var lookup = String.Concat(file.File.ComponentRef, "/", name);
341 if (!assemblyNameTuples.TryGetValue(lookup, out var assemblyNameRow)) 341 if (!assemblyNameTuples.TryGetValue(lookup, out var assemblyNameRow))
342 { 342 {
343 assemblyNameRow = new MsiAssemblyNameTuple(file.File.SourceLineNumbers); 343 assemblyNameRow = new MsiAssemblyNameTuple(file.File.SourceLineNumbers);
344 assemblyNameRow.Component_ = file.File.Component_; 344 assemblyNameRow.ComponentRef = file.File.ComponentRef;
345 assemblyNameRow.Name = name; 345 assemblyNameRow.Name = name;
346 assemblyNameRow.Value = value; 346 assemblyNameRow.Value = value;
347 347
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateMediaSequencesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateMediaSequencesCommand.cs
index e6738bb7..f9df9636 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateMediaSequencesCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateMediaSequencesCommand.cs
@@ -119,7 +119,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
119 // TODO: Sort these facades even smarter by directory path and component id 119 // TODO: Sort these facades even smarter by directory path and component id
120 // and maybe file size or file extension and other creative ideas to 120 // and maybe file size or file extension and other creative ideas to
121 // get optimal install speed out of MSI. 121 // get optimal install speed out of MSI.
122 return this.FileFacades.OrderBy(f => f.File.Component_); 122 return this.FileFacades.OrderBy(f => f.File.ComponentRef);
123 } 123 }
124 } 124 }
125} 125}