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

Open
babzog opened this Issue Dec 15, 2016 · 0 comments

Projects

None yet

2 participants

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

3.10.3.3007

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

VS 2015 Update 3

  • Which version of .NET are you building with?

4.5

  • 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:

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

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:

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

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