diff options
Diffstat (limited to 'src/tools/heat/DirectoryHarvester.cs')
-rw-r--r-- | src/tools/heat/DirectoryHarvester.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/heat/DirectoryHarvester.cs b/src/tools/heat/DirectoryHarvester.cs index c1cc3edb..c153fef5 100644 --- a/src/tools/heat/DirectoryHarvester.cs +++ b/src/tools/heat/DirectoryHarvester.cs | |||
@@ -5,6 +5,7 @@ namespace WixToolset.Harvesters | |||
5 | using System; | 5 | using System; |
6 | using System.IO; | 6 | using System.IO; |
7 | using WixToolset.Data; | 7 | using WixToolset.Data; |
8 | using WixToolset.Data.WindowsInstaller; | ||
8 | using WixToolset.Harvesters.Data; | 9 | using WixToolset.Harvesters.Data; |
9 | using WixToolset.Harvesters.Extensibility; | 10 | using WixToolset.Harvesters.Extensibility; |
10 | using Wix = WixToolset.Harvesters.Serialize; | 11 | using Wix = WixToolset.Harvesters.Serialize; |
@@ -14,7 +15,7 @@ namespace WixToolset.Harvesters | |||
14 | /// </summary> | 15 | /// </summary> |
15 | public sealed class DirectoryHarvester : BaseHarvesterExtension | 16 | public sealed class DirectoryHarvester : BaseHarvesterExtension |
16 | { | 17 | { |
17 | private FileHarvester fileHarvester; | 18 | private readonly FileHarvester fileHarvester; |
18 | 19 | ||
19 | private const string ComponentPrefix = "cmp"; | 20 | private const string ComponentPrefix = "cmp"; |
20 | private const string DirectoryPrefix = "dir"; | 21 | private const string DirectoryPrefix = "dir"; |
@@ -84,8 +85,7 @@ namespace WixToolset.Harvesters | |||
84 | { | 85 | { |
85 | Wix.Directory directory = (Wix.Directory)harvestParent; | 86 | Wix.Directory directory = (Wix.Directory)harvestParent; |
86 | 87 | ||
87 | Wix.DirectoryRef directoryRef = new Wix.DirectoryRef(); | 88 | var directoryRef = DirectoryHelper.CreateDirectoryReference(this.RootedDirectoryRef); |
88 | directoryRef.Id = this.RootedDirectoryRef; | ||
89 | 89 | ||
90 | if (this.SuppressRootDirectory) | 90 | if (this.SuppressRootDirectory) |
91 | { | 91 | { |
@@ -208,7 +208,7 @@ namespace WixToolset.Harvesters | |||
208 | private int HarvestDirectory(string path, string relativePath, Wix.IParentElement harvestParent, GenerateType generateType) | 208 | private int HarvestDirectory(string path, string relativePath, Wix.IParentElement harvestParent, GenerateType generateType) |
209 | { | 209 | { |
210 | int fileCount = 0; | 210 | int fileCount = 0; |
211 | Wix.Directory directory = generateType != GenerateType.PayloadGroup ? (Wix.Directory)harvestParent : null; | 211 | Wix.DirectoryBase directory = generateType != GenerateType.PayloadGroup ? (Wix.DirectoryBase)harvestParent : null; |
212 | 212 | ||
213 | // harvest the child directories | 213 | // harvest the child directories |
214 | foreach (string childDirectoryPath in Directory.GetDirectories(path)) | 214 | foreach (string childDirectoryPath in Directory.GetDirectories(path)) |