firegiant / HeatWaveSupport

Issues-only repository to report HeatWave bugs and feature requests to FireGiant
3 stars 0 forks source link

Build events does not expand all project variables #46

Closed tholp closed 8 months ago

tholp commented 10 months ago

HeatWave Version

1.0.2

Visual Studio Version

16.11.31

Repro Steps

Write a Pre-Build event command line that contains (e.g.,) the variable $(ProjectDir) this variable will expand to nothing. The variable $(DevEnvDir) on the other hand does expand to the expected string.

echo $(ProjectDir)
echo $(DevEnvDir)

Actual Result

1>ECHO is on.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\

Expected Result

1>C:\...
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\
chrpai commented 10 months ago

https://github.com/wixtoolset/issues/issues/7866

This appears to be a Heatwave bug, an SDK targets bug, or a misalignment between the two. If I author a postbuild it puts it in the primary property group. For console app sdk project type it authors it as:

  <Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="copy /y &quot;$(TargetPath)&quot; C:\GitHub" />
  </Target>

If I move this to the .wixproj msbuild processes it correctly but HeatWave doesn't see it in the property designer.

FireGiantHelp commented 8 months ago

Duplicate of #44