aboutsummaryrefslogtreecommitdiff
path: root/src/tools/heat
diff options
context:
space:
mode:
authorMike Wileczka <22036740+mwileczka@users.noreply.github.com>2023-04-19 10:12:24 -0400
committerRob Mensching <rob@firegiant.com>2023-04-19 09:18:55 -0700
commit041558eb93368365ca397e16045e01454a603976 (patch)
tree3de5a5eba3c78a7e102f77611a37530220846e9c /src/tools/heat
parent282576fe225b7673214a167631193a17c2a2ead7 (diff)
downloadwix-041558eb93368365ca397e16045e01454a603976.tar.gz
wix-041558eb93368365ca397e16045e01454a603976.tar.bz2
wix-041558eb93368365ca397e16045e01454a603976.zip
Fix harvesting project names with invalid chars
Project names with invalid characters, namely spaces, where not being harvested properly. The sanitized name is requires for the `Source="$(var.PROJECT_NAME` output. Updated harvest project unit test for project names with spaces.
Diffstat (limited to 'src/tools/heat')
-rw-r--r--src/tools/heat/VSProjectHarvester.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/heat/VSProjectHarvester.cs b/src/tools/heat/VSProjectHarvester.cs
index 02e8ff94..92eac6ff 100644
--- a/src/tools/heat/VSProjectHarvester.cs
+++ b/src/tools/heat/VSProjectHarvester.cs
@@ -367,7 +367,7 @@ namespace WixToolset.Harvesters
367 projectBaseDir = Path.GetDirectoryName(projectFile) + "\\"; 367 projectBaseDir = Path.GetDirectoryName(projectFile) + "\\";
368 } 368 }
369 369
370 int harvestCount = this.HarvestProjectOutputGroupFiles(projectBaseDir, projectName, pog.Name, pog.FileSource, pogFiles, harvestParent); 370 int harvestCount = this.HarvestProjectOutputGroupFiles(projectBaseDir, sanitizedProjectName, pog.Name, pog.FileSource, pogFiles, harvestParent);
371 371
372 if (this.GenerateType == GenerateType.Container) 372 if (this.GenerateType == GenerateType.Container)
373 { 373 {