aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Binder.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-26 15:11:40 -0800
committerRob Mensching <rob@firegiant.com>2017-12-26 15:11:40 -0800
commit1d6ff8af3c423ee4622185edc986ae5caad6b122 (patch)
tree0fd320bb2e249da3a2fbebcd3e0aa49879aa27b0 /src/WixToolset.Core/Binder.cs
parentecf3a0cca5a424a91ab98557d963d2535963d582 (diff)
downloadwix-1d6ff8af3c423ee4622185edc986ae5caad6b122.tar.gz
wix-1d6ff8af3c423ee4622185edc986ae5caad6b122.tar.bz2
wix-1d6ff8af3c423ee4622185edc986ae5caad6b122.zip
Standardize creation of public objects in move towards interfaces
Diffstat (limited to 'src/WixToolset.Core/Binder.cs')
-rw-r--r--src/WixToolset.Core/Binder.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/WixToolset.Core/Binder.cs b/src/WixToolset.Core/Binder.cs
index c442c94d..f112a214 100644
--- a/src/WixToolset.Core/Binder.cs
+++ b/src/WixToolset.Core/Binder.cs
@@ -125,19 +125,19 @@ namespace WixToolset.Core
125 { 125 {
126 var entrySection = output.Sections.First(s => s.Type != SectionType.Fragment); 126 var entrySection = output.Sections.First(s => s.Type != SectionType.Fragment);
127 127
128 Assembly executingAssembly = Assembly.GetExecutingAssembly(); 128 var executingAssembly = Assembly.GetExecutingAssembly();
129 FileVersionInfo fileVersion = FileVersionInfo.GetVersionInfo(executingAssembly.Location); 129 var fileVersion = FileVersionInfo.GetVersionInfo(executingAssembly.Location);
130 130
131 var buildInfoRow = new WixBuildInfoTuple(); 131 var buildInfoTuple = new WixBuildInfoTuple();
132 buildInfoRow.WixVersion = fileVersion.FileVersion; 132 buildInfoTuple.WixVersion = fileVersion.FileVersion;
133 buildInfoRow.WixOutputFile = outputFile; 133 buildInfoTuple.WixOutputFile = outputFile;
134 134
135 if (!String.IsNullOrEmpty(outputPdbPath)) 135 if (!String.IsNullOrEmpty(outputPdbPath))
136 { 136 {
137 buildInfoRow.WixPdbFile = outputPdbPath; 137 buildInfoTuple.WixPdbFile = outputPdbPath;
138 } 138 }
139 139
140 entrySection.Tuples.Add(buildInfoRow); 140 entrySection.Tuples.Add(buildInfoTuple);
141 } 141 }
142 } 142 }
143} 143}