Using wix 3.10.2.
I would like to reference an environment variable within a .wixproj file.
I have tried (exerpt from my .wixproj):
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<JavaDocsBaseDir>$(env.JAVADOCS)</JavaDocsBaseDir>
but I am getting the error:
error MSB4184: The expression """.JAVADOCS" cannot be evaluated. Method 'System.String.JAVADOCS' not found.
Tried removing the "env." with no luck. Also tried using the windows env var format %JAVADOCS%, also with no luck. What am I doing wrong?
I am calling the build via
msbuild ClientSetup.sln /p:Configuration=Release
So, I have the ability to pass the data via commandline as well, if that is an option.