When you are building a dotnet core project with SonarQube you may be facing the error in the log:
WARNING: The following projects do not have a valid ProjectGuid and were not built using a valid solution (.sln) thus will be skipped from analysis...
What should you do?
Here's a solution to adding the missing xml elements in powershell.
As dotnet core projects (.csproj) will not have
<ProjectGuid>...</ProjectGuid>
tag specified in the default template this needs to be manually added.So you need to edit the .csproj file like this:
Make sure to place your own GUID inside the
<ProjectGuid>...</ProjectGuid>
Tag