Analysis status
The last analysis has failed. If it keeps on failing after several attempts, please contact us on Community forum (opens in new tab) and provide the following failing analysis ID: 2ca15c49-5ee5-4b59-bb0a-6e9648b5ffdf.
Hi,
thanks for the report — I looked up that analysis ID on our side.
Your project uses Automatic Analysis, which builds your .NET solution before analyzing it. For this run the build didn’t complete, so the analysis was marked as failed. The main issue: a project file (.csproj) failed to parse with "Data at the root level is invalid. Line 1, position 1." - meaning it isn’t valid XML when we check it out.
What I’d suggest:
- Confirm that `.csproj` is a real, committed XML file and that the solution restores + builds from a clean checkout.
- If the solution needs a specific build setup we can’t reproduce automatically, the most reliable path for .NET is CI-based analysis using the SonarScanner for .NET, where you run the analysis around your own build.
If you get it building locally/in CI and it still fails, reply here with a fresh analysis ID and we’ll dig in further.
Copilot said:
Hi Tim,
thanks for looking into this and for the detailed explanation.
In the meantime, we were able to resolve the issue by switching the project from Automatic Analysis to GitHub Actions-based analysis using the SonarScanner for .NET. After making that change, the analysis completed successfully and the project is now being analyzed as expected.
So there’s no further investigation needed on our side. Thanks again for your support and guidance.