Closed luisgoncalves closed 7 years ago
I've created a pull request where I've taken the first approach to fix it for folder project types. There may be some projects that will break the addin as well, but I'm not confortable enough with the .sln format to know.
@Ashthos any word on this?
i can confirm that solution folders are causing problems with the stylecop addin. please include @Symbianx his PR
Any news on this?
@luisgoncalves, this issue has been fixed with the merge of PR #3.
Version 0.15 of Cake introduced support for solution folders on
SolutionParser
. This brokeCake.StyleCop
because additional items are now returned on theProjects
collection and those items don't have a corresponding.csproj
file on disk.We need to filter out the "projects" that are actually solution fodlers.I see two options to handle this:
Type
of solution folders. This keeps the dependency on Cake in the same version.SolutionFolder
class or theSolutionFolder.TypeIdentifier
constant.Since Cake still doesn't have a way of matching addin versions to Cake versions, option 2 may break some scenarios. But everything is still on v 0.XX.X.
Which would you prefer?