Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
chrpai committed Nov 16, 2022
2 parents c988084 + a436bef commit a525b87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public Dictionary<string, string> PossibleNamespaces

foreach (var file in new DirectoryInfo(schemasDir).GetFiles(patternMatch))
{
string prefix = Path.GetFileNameWithoutExtension(file.Name).ToLower();
string prefix = Path.GetFileNameWithoutExtension(file.Name).ToLower().Split('-').First();
if (!prefix.Equals("wix"))
{
XDocument doc = XDocument.Load(file.FullName);
Expand Down
8 changes: 6 additions & 2 deletions Application/Shared/WiXAutomationInteface/IsWixUpgradeFixer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ public static void Fix()
}
foreach (var element in module.Elements(ns + "StandardDirectory"))
{
targetDir.Add(new XElement(ns + "Directory", new XAttribute("Id", element.Attribute("Id").Value)));
XElement newDirectory = new XElement(ns + "Directory", new XAttribute("Id", element.Attribute("Id").Value));
foreach (var subElement in element.Elements())
{
newDirectory.Add(subElement);
}
targetDir.Add(newDirectory);
element.Remove();
}
module.Add(targetDir);
}
}
}

}
}

0 comments on commit a525b87

Please sign in to comment.