aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Compiler.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-05-22 16:28:02 -0700
committerRob Mensching <rob@firegiant.com>2019-05-23 16:02:37 -0700
commit3051bf2fc300df125115c9538a0bfc8256bfde6a (patch)
tree65aa2e091a6a5fa983314ab9cb55a72ba16faf02 /src/WixToolset.Core/Compiler.cs
parent3859a8cd7d6001f7b49c22065e33242ddb486fbb (diff)
downloadwix-3051bf2fc300df125115c9538a0bfc8256bfde6a.tar.gz
wix-3051bf2fc300df125115c9538a0bfc8256bfde6a.tar.bz2
wix-3051bf2fc300df125115c9538a0bfc8256bfde6a.zip
Integrate short and source name changes to Directory and Shortcut tuples
Diffstat (limited to 'src/WixToolset.Core/Compiler.cs')
-rw-r--r--src/WixToolset.Core/Compiler.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/WixToolset.Core/Compiler.cs b/src/WixToolset.Core/Compiler.cs
index ea018d54..d543c6b8 100644
--- a/src/WixToolset.Core/Compiler.cs
+++ b/src/WixToolset.Core/Compiler.cs
@@ -4028,7 +4028,6 @@ namespace WixToolset.Core
4028 string shortName = null; 4028 string shortName = null;
4029 string sourceName = null; 4029 string sourceName = null;
4030 string shortSourceName = null; 4030 string shortSourceName = null;
4031 string defaultDir = null;
4032 string symbols = null; 4031 string symbols = null;
4033 4032
4034 foreach (var attrib in node.Attributes()) 4033 foreach (var attrib in node.Attributes())
@@ -4208,7 +4207,7 @@ namespace WixToolset.Core
4208 } 4207 }
4209 4208
4210 // Calculate the DefaultDir for the directory row. 4209 // Calculate the DefaultDir for the directory row.
4211 defaultDir = String.IsNullOrEmpty(shortName) ? name : String.Concat(shortName, "|", name); 4210 var defaultDir = String.IsNullOrEmpty(shortName) ? name : String.Concat(shortName, "|", name);
4212 if (!String.IsNullOrEmpty(sourceName)) 4211 if (!String.IsNullOrEmpty(sourceName))
4213 { 4212 {
4214 defaultDir = String.Concat(defaultDir, ":", String.IsNullOrEmpty(shortSourceName) ? sourceName : String.Concat(shortSourceName, "|", sourceName)); 4213 defaultDir = String.Concat(defaultDir, ":", String.IsNullOrEmpty(shortSourceName) ? sourceName : String.Concat(shortSourceName, "|", sourceName));
@@ -4260,7 +4259,10 @@ namespace WixToolset.Core
4260 var tuple = new DirectoryTuple(sourceLineNumbers, id) 4259 var tuple = new DirectoryTuple(sourceLineNumbers, id)
4261 { 4260 {
4262 ParentDirectoryRef = parentId, 4261 ParentDirectoryRef = parentId,
4263 DefaultDir = defaultDir, 4262 Name = name,
4263 ShortName = shortName,
4264 SourceName = sourceName,
4265 SourceShortName = shortSourceName,
4264 ComponentGuidGenerationSeed = componentGuidGenerationSeed 4266 ComponentGuidGenerationSeed = componentGuidGenerationSeed
4265 }; 4267 };
4266 4268