I have a repository that contains both dotnet and angular projects, basically a mono-repo.
Question:
In such scenario can I have 2 Prepare and 2 Analysis tasks and then 1 publish task? Will it capture scans details as a combined report and then publish.
For example, will I get correct coverage results for both projects, summary is cumulative of both scans, etc.
Assuming this is one project with both C# and JS, you should use SonarScanner for .NET; it will pick up the other language(s) too.
If it truly is a monorepo - independent projects checked in together - then you would use SS4.NET for the C# project, and either SonarScanner CLI or SonarScanner for NPM for the Angular.