Once your project is created and initiated from the repository you selected, you can follow the tutorial to configure your analysis with Azure DevOps Pipelines.
The following SonarCloud templates are available to make the configuration of your pipeline easier:
- .NET Core
- .NET Desktop
- Generic analysis
- Generic analysis using an existing properties file
The example below shows how you could set up a yml file for a single project:
If you want to analyze a monorepo that contains more than one project, you need to ensure that you specify the paths to each project for analysis in your azure-pipelines.yml file.
A typical yml file for a monorepo analysis should look something like this:
To ensure that your monorepo works as expected, note that you need to build each project in the monorepo separately with a unique project key for each one.