How is our software special project structure:
main (contains the solution main.sln)
main\Shared.ToBasis (contains the shared CSharp sources)
main\ToBasis\R231 (contains the project to build ToBasis for AutoCAD 2019)
the subproject file ToBasis_R231.csproj contains the following line:
<Import Project="..\..\Shared.ToBasis\Shared.ToBasis.projitems" Label="Shared" />
as a reference to the location of the sources files.
The main reason for this split-up is building modules for different AutoCAD versions with a shared code base.
Our problem is that the csharp files of these subprojectes are not included anymore in a SonarQube scan.
In our TFS build log i found the following lines:
2020-02-18T15:50:59.2644907Z INFO: Indexing files of module ‘ToBasis_R230’
2020-02-18T15:50:59.2646163Z INFO: Base dir: D:\Agent.2\110\s\ToBasis\R230
2020-02-18T15:50:59.2646542Z INFO: Source paths: packages.config
2020-02-18T15:50:59.2646896Z INFO: Excluded sources for coverage: **/*.cs
this is diffentent from a subproject thats not in a submap:
2020-02-18T15:50:59.2051436Z INFO: Indexing files of module ‘XmlCommon’
2020-02-18T15:50:59.2051759Z INFO: Base dir: D:\Agent.2\110\s\XmlCommon
2020-02-18T15:50:59.2052105Z INFO: Source paths: Properties/AssemblyInfo.cs, CommonXmlException.cs, Convert.cs…
2020-02-18T15:50:59.2052467Z INFO: Excluded sources for coverage: **/*.cs
This subproject contains sources paths with files included and this subproject works fine with SOnarQube.
Then i looked in the logging of SonarQube on our build server
I found the following files FilesToAnalyze.txt
D:\Agent.2\110\s\ToBasis\Properties\AssemblyInfo.cs
D:\Agent.2\110\s\Shared.ToBasis\ArcToLine.cs
D:\Agent.2\110\s\Shared.ToBasis\CommandHandler.cs
D:\Agent.2\110\s\Shared.ToBasis\Common.cs
D:\Agent.2\110\s\Shared.ToBasis\DI\Container.cs
and this file contains all the files of the subproject. But still all of these files are not scanned by SonarQube.
I hope somebody understands what i am doing.
And hopefully somebody knows a solution.
Finally: We are working with SonarQube 7.9 and the latest versions of all scanners and we are using the SonarQube plugin on TFS version 2015.