Add support for wildcards in project files
Closed this issue · 5 comments
Probably just by creating a special IProjectItem derived class (that has a method/property that can be queried to get all affected files) and using it when a project item includes a wildcard.
Is Exclude
also supported?
e.g. <Compile Include="**\*.cs" Exclude="obj\**" />
And multiple patterns?
e.g. <Compile Include="A\**\*.cs;B\*.cs" Exclude="A\Sub\**;B\x.cs" />
Good point! In the current implementation Excludes are not handled correctly, but I'll change that before the 0.2.0 release :).
Thx.
Ok as it turns out, MSBuild already handles wildcards correctly (and since I use MSBuild to obtain the project items so does SolutionInspector), I just improved the information contained in the SolutionInspector MSBuild object model to make inclusions/exclusions by wildcards visible.