I am trying to analyse the output from a WPF project. During the Code Analysis phase, it is coming up with WARNING: Duplicate ProjectGuid: "5d4a1aea-e8f0-4314-bfcb-6465174c12eb". The project will not be analyzed by SonarQube. Project file: "XXXXX_ekj2fnfr_wpftmp.csproj"
I have checked the “ProjectInfo.xml” for the project and it has got <IsExcluded>true</IsExcluded>
but still it is trying to analyse it and failing as it is thinking the fake WPF project is a duplicate.
What am I doing wrong?
Hi @steven.denman
Which version of the Scanner for MSBuild are you using ?
Hi Mickaël,
I am using SonarScanner for MSBuild 4.10 with MSBuild v15.0.
I have edited the SonarQube.integration.targets file so that it outputs the tags (see bug 892) and verified that indeed SonarExclude is setting to true but yet it still errors out for duplicate project GUID.
I have however created a blank WPF project and made sure it created the temporary WPF project, but not able to replicate the issue. So I am not sure exactly what the issue could be, it seems related to how we are building the specific project (it is rather complex) so I am trying to find out what exactly it is.
Regards,
Steven
Thanks !
Is your temporary project file a “.fakes” one ? We are relying only on that extension to categorize this project and exclude it automatically.
The temporary project is auto generated by MSBuild, it is a wpftmp one.
Ok, i’ll have a look on my side to try to reproduce and get back to you.
Thanks.