<Project>

    <ItemGroup>
        <ProjectsToAnalyze Include="src/**/*.fsproj" Exclude="src/Fantomas.FCS/Fantomas.FCS.fsproj"/>
    </ItemGroup>

    <Target Name="AnalyzeSolution">
        <PropertyGroup>
            <CodeRoot>$(SolutionDir)</CodeRoot>
        </PropertyGroup>
        <RemoveDir Directories="$(SolutionDir)/analysisreports" />
        <MSBuild Projects="@(ProjectsToAnalyze)" 
                 Targets="AnalyzeFSharpProject"
                 Properties="CodeRoot=$(CodeRoot)" ContinueOnError="true" />
    </Target>

</Project>