Skip to content

Commit 340c826

Browse files
committed
more space escaping
1 parent 36fa2fe commit 340c826

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

build/rules/GenerateFeatureFlags.proj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,14 @@
6363
Outputs="$(OpenConsoleCommonOutDir)\inc\TilFeatureStaging.h"
6464
DependsOnTargets="_GenerateBranchAndBrandingCache">
6565
<MakeDir Directories="$(OpenConsoleCommonOutDir)\inc" />
66+
<!-- This commandline is escaped like:
67+
68+
powershell -Command "&'$(SolutionDir)\tools\Generate-FeatureStagingHeader.ps1' -Path '%(FeatureFlagFile.FullPath)'' -Branding $(_WTBrandingName)"
69+
70+
which was the only way I could find to get it to obey spaces in the SolutionDir
71+
-->
6672
<Exec
67-
Command="powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy ByPass -Command &quot;$(SolutionDir)\tools\Generate-FeatureStagingHeader.ps1&quot; -Path &quot;%(FeatureFlagFile.FullPath)&quot; -Branding $(_WTBrandingName)"
73+
Command="powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy ByPass -Command &quot;&amp;&apos;$(SolutionDir)\tools\Generate-FeatureStagingHeader.ps1&apos; -Path &apos;%(FeatureFlagFile.FullPath)&apos; -Branding $(_WTBrandingName)&quot;"
6874
ConsoleToMsBuild="true"
6975
StandardOutputImportance="low">
7076
<Output TaskParameter="ConsoleOutput" ItemName="_FeatureFlagFileLines" />

src/propsheet/propsheet.vcxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@
7878
<AdditionalIncludeDirectories>$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
7979
</ResourceCompile>
8080
</ItemDefinitionGroup>
81+
<!-- If you don't include a '.' at the end of the $(IntermediateOutputPath),
82+
mc.exe will get confused by the trailign slash. -->
8183
<Target Name="MessageCompile" Inputs="@(MessageCompile)" Outputs="$(IntermediateOutputPath)\%(MessageCompile.Filename).h" BeforeTargets="ClCompile">
82-
<Exec Command="mc.exe /h &quot;$(IntermediateOutputPath)&quot; /r &quot;$(IntermediateOutputPath)&quot; @(MessageCompile)" />
84+
<Exec Command="mc.exe /h &quot;$(IntermediateOutputPath).&quot; /r &quot;$(IntermediateOutputPath).&quot; @(MessageCompile)" />
8385
</Target>
8486
<!-- Careful reordering these. Some default props (contained in these files) are order sensitive. -->
8587
<Import Project="..\common.build.post.props" />

0 commit comments

Comments
 (0)