2021-11-23T17:48:06.4057901Z 17:48:06.399 ERROR: Error during SonarScanner execution
2021-11-23T17:48:06.4058965Z 17:48:06.399 INFO: ------------------------------------------------------------------------
2021-11-23T17:48:06.4062517Z ##[error]java.lang.IllegalStateException: The base directory of the module ‘3CDBEBBC-503D-4132-BEFC-091554528943’ does not exist: /tmp/jpa5hzfh.grh
at org.sonarsource.scanner.cli.Conf.setModuleBaseDir(Conf.java:205)
at org.sonarsource.scanner.cli.Conf.loadModuleConfigFile(Conf.java:184)
at org.sonarsource.scanner.cli.Conf.loadModulesProperties(Conf.java:162)
at org.sonarsource.scanner.cli.Conf.loadProjectProperties(Conf.java:136)
at org.sonarsource.scanner.cli.Conf.properties(Conf.java:61)
at org.sonarsource.scanner.cli.Main.execute(Main.java:69)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
So this project seems to have no sources and to be in a temporary folder. It seems that this is probably auto-generated and after the build it gets deleted.
Could you share more around how you are using the analysis? Are you generating a temporary project during the build? How are you doing that?
If you’d rather have the discussion on a private thread, please let me know, and we can do this on this forum.
@Yevhen_Novytskyi Are you able to build your .NET 6 solution/project successfully?
I had to update vmImage to ‘windows-2022’ and install .NET 6 SDK for the solution to build successfully in Azure DevOps, see complete yaml file for your reference, hopefully it helps you.