diff options
Diffstat (limited to 'src/tools/heat/UtilMutator.cs')
-rw-r--r-- | src/tools/heat/UtilMutator.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tools/heat/UtilMutator.cs b/src/tools/heat/UtilMutator.cs index 0bc15cd6..3e084fa3 100644 --- a/src/tools/heat/UtilMutator.cs +++ b/src/tools/heat/UtilMutator.cs | |||
@@ -398,8 +398,7 @@ namespace WixToolset.Harvesters | |||
398 | this.fragments.Add(String.Concat("Component:", (null != component.Id ? component.Id : this.fragments.Count.ToString())), fragment); | 398 | this.fragments.Add(String.Concat("Component:", (null != component.Id ? component.Id : this.fragments.Count.ToString())), fragment); |
399 | 399 | ||
400 | // create a new DirectoryRef | 400 | // create a new DirectoryRef |
401 | Wix.DirectoryRef directoryRef = new Wix.DirectoryRef(); | 401 | var directoryRef = DirectoryHelper.CreateDirectoryReference(directory.Id); |
402 | directoryRef.Id = directory.Id; | ||
403 | fragment.AddChild(directoryRef); | 402 | fragment.AddChild(directoryRef); |
404 | 403 | ||
405 | // move the Component from the the Directory to the DirectoryRef | 404 | // move the Component from the the Directory to the DirectoryRef |
@@ -438,7 +437,7 @@ namespace WixToolset.Harvesters | |||
438 | { | 437 | { |
439 | if (directory.ParentElement is Wix.Directory) | 438 | if (directory.ParentElement is Wix.Directory) |
440 | { | 439 | { |
441 | Wix.Directory parentDirectory = (Wix.Directory)directory.ParentElement; | 440 | var parentDirectory = (Wix.DirectoryBase)directory.ParentElement; |
442 | 441 | ||
443 | // parent directory must have an identifier to create a reference to it | 442 | // parent directory must have an identifier to create a reference to it |
444 | if (null == parentDirectory.Id) | 443 | if (null == parentDirectory.Id) |
@@ -451,8 +450,7 @@ namespace WixToolset.Harvesters | |||
451 | this.fragments.Add(String.Concat("Directory:", ("TARGETDIR" == directory.Id ? null : (null != directory.Id ? directory.Id : this.fragments.Count.ToString()))), fragment); | 450 | this.fragments.Add(String.Concat("Directory:", ("TARGETDIR" == directory.Id ? null : (null != directory.Id ? directory.Id : this.fragments.Count.ToString()))), fragment); |
452 | 451 | ||
453 | // create a new DirectoryRef | 452 | // create a new DirectoryRef |
454 | Wix.DirectoryRef directoryRef = new Wix.DirectoryRef(); | 453 | var directoryRef = DirectoryHelper.CreateDirectoryReference(parentDirectory.Id); |
455 | directoryRef.Id = parentDirectory.Id; | ||
456 | fragment.AddChild(directoryRef); | 454 | fragment.AddChild(directoryRef); |
457 | 455 | ||
458 | // move the Directory from the parent Directory to DirectoryRef | 456 | // move the Directory from the parent Directory to DirectoryRef |