How can I prevent e.g. wxs files that are located below a project at file level from being automatically included in the project, i.e. from being displayed in the Solution Explorer? It is then also not possible to remove them from the project with 'Exclude from Project'. The only solution is to delete the corresponding file. This still worked under Wix 3.14. What am I doing wrong?
1 Answer
There is a bug open on the Exclude behavior not working properly. For now you can disable the default items then explicitly add Compile items.
Like:
<PropertyGroup>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>
<ItemGroup>
<Compile Include="my.wxs" />
<Compile Include="all\of\these\too\*.wxs" />
</ItemGroup>