I need to use an environment variable.
The CMD Prompt shows the following content
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\
Now I try to use this
<Merge Id='VC_CRT_x86'
Language='0'
SourceFile='$(env.VCINSTALLDIR)\Redist\MSVC\14.16.27012\MergeModules\Microsoft_VC141_CRT_x86.msm'
DiskId='1'
/>
But I get the message
error CNDL0150: Undefined preprocessor variable '$(env.VCINSTALLDIR)'.
Using the full path works.
I compile from within the VS-2019 environment.
EDIT: When I use a simple CMD window and I use Candle.exe from there. Everything works. It seams that the environment variables are not passed within VS-2019.
EDIT2: Using devenv.exe /build release mywxsproject.sln
works too!