wixproj ItemGroup entries with env vars will not load in VS2015 #5456

babzog opened this Issue Dec 15, 2016 · 0 comments


None yet

2 participants

babzog commented Dec 15, 2016
  • Which version of WiX are you building with?

  • Which version of Visual Studio are you building with (if any)?

VS 2015 Update 3

  • Which version of .NET are you building with?


  • Describe the problem and the steps to reproduce it.

I have a wixproj file that builds an msi just fine on the commandline, but will not load in VS2015.

Investigation revealed that the presence of an environment variable is causing:

C:\git\installer\WiX\ClientMSI\ClientMSI.wixproj : error  : InvalidParameter
Parameter name: CreateFolderNodes path

And an offending snippet from the wixproj file:

    <Compile Include="$(OUTPUT_DIR)\Fragments\Samples_Fragment.wxs" />

The fragment is one of many that is generated by a HeatDirectory task. We want to use the env var to determine the placement of the fragment (outside of the code base). The HeatDirectory task works fine with the env var:

        OutputFile="$(OUTPUT_DIR)\Fragments\Samples_Fragment.wxs" ... >

If I remove the OUTPUT_DIR variable, it will load fine.

  • Describe the behavior you expected and how it differed from the actual behavior.

I expected VS to load the project properly and without error.

@barnson barnson added this to the v4.x milestone Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment