Closed drashnane closed 5 years ago
the code I tried to analyze :
using System;
namespace console1
{
class Program
{
static void Main(string[] args)
{
bool a = false;
bool b = true;
GC.Collect();
Console.WriteLine("Hello World!");
if(a =! b)
{
Console.WriteLine("hahaha");
}
}
}
}
Hi @drashnane, thanks for the detailed information. I am afraid that the Scanner CLI cannot be used to analyze .NET source code. Please, refer to this article for instructions how to use Scanner for MSBuild (and the corresponding dotnet commands) to analyze projects on Linux or OSX: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild
Update: also please make sure that you are analyzing a solution or you have <ProjectGuid>unique guid here</ProjectGuid>
in your project. This is mentioned in the article above.
Facing same issue tried with new project from scratch but it always goes without any error and shows “This project is empty”. I am trying to run with Xcode project. And using Community edition.
this issue is still not fixed and needs to be open again. https://community.sonarsource.com/t/this-project-is-empty/7961
Description
OS: Mac OS 10.13.6 SonarQube:7.4.0.18908 with builtin database SonarC#:7.9.1 SonarScanner:3.2.0.1227
sonarqube page always shows "This Project Is Empty"
Repro steps
Command:
Logs: