I’m using the SonarQube Developer edition Trial license.
Deployed as a zip
I’m trying out the SonarQube Developer edition, and setting it up for a scan.
I have set up the SonarQube server and tried to build the solution from VS2022, and it works. But when I try scanning with “dotnet build” from command line, it throws an error “error MSB4019 - The imported project was not found”
Hey there.
Your best bet is to find the team responsible for this codebase and ask them what command builds the code. They might use dotnet
, or perhaps MSBuild.exe
– either way, the scanner just needs a project that builds successfully.
Thank you, Colin, for your response. I got the error fixed. The scan ran fine, but after that on the Overview page I see “The “origin/x.x.x” branch has no lines of code.”
Is there anything I am missing here?
It won’t be possible to guess based on the information shared. I suggest you share your full analysis logs (at least the output of the end
step of the Scanner for .NET, but preferably your full build/analysis logs).