Duplicate ProjectGuid, Illegal characters in path

Hi @Andrei_Epure ,
How are you ?
Having similar issue with dotnet code base having not sln file. Only with *.cspoj file

1.Created a pipeline in Azure devops ( But not using Sonarqube extension) ,but installed sonarscanner in one of the self hosted agent where c# code is getting compiled

2.Above mentioned step gives different error log with different options , which I tried so far …

a.WARNING: Duplicate ProjectGuid: “00000000-0000-0000-0000-000000000000”. The project will not be analyzed by SonarQube. Project file: “f:\vsts_agents\dca8_03_sonar_work\r24\a<>******1.csproj”
2020-06-29T08:04:58.1729362Z WARNING: Duplicate ProjectGuid: “00000000-0000-0000-0000-000000000000”. The project will not be analyzed by SonarQube. Project file: “f:\vsts_agents\dca8_03_sonar_work\r24\a<>******2.csproj”

3.Manually edited .csproj files with

a.{aaea0efb-88bf-4fa1-8550-a1af4dbc9f72}

b.{aaea0efb-88bf-4fa1-8550-a1af4dbc9f73}

c.When reran all steps here is the error
Unhandled Exception: System.ArgumentException: Illegal characters in path.
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.ComputeRootProjectBaseDir(IEnumerable1 projectPaths) at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.TryWriteProperties(PropertiesWriter writer, IEnumerable1& allProjects)
at SonarScanner.MSBuild.Shim.PropertiesFileGenerator.GenerateFile()
at SonarScanner.MSBuild.Shim.SonarScannerWrapper.Execute(AnalysisConfig config, IEnumerable`1 userCmdLineArguments)
at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.InvokeSonarScanner(IAnalysisPropertyProvider cmdLineArgs, AnalysisConfig config)
at SonarScanner.MSBuild.PostProcessor.MSBuildPostProcessor.Execute(String args, AnalysisConfig config, ITeamBuildSettings settings)
at SonarScanner.MSBuild.BootstrapperClass.PostProcess()
at SonarScanner.MSBuild.BootstrapperClass.Execute()
at SonarScanner.MSBuild.Program.Execute(String args, ILogger logger)
at SonarScanner.MSBuild.Program.Main(String args)

Your quick help will be really helpful.

Hi @tlnarayana

If you add manually a Project Guid, it must be in the form of :

<ProjectGuid>aaea0efb-88bf-4fa1-8550-a1af4dbc9f72</ProjectGuid>

It must not contain curly braces.

HTH,
Mickaël