# Your project contains C# files which cannot be analyzed..use the SonarScanner for .NET 5.x or higher

**URL:** <https://community.sonarsource.com/t/your-project-contains-c-files-which-cannot-be-analyzed-use-the-sonarscanner-for-net-5-x-or-higher/73468>\
**Category:** SonarQube Server / Community Build\
**Tags:** dotnet\
**Created:** [September 23, 2022, 12:21pm UTC](https://community.sonarsource.com/t/your-project-contains-c-files-which-cannot-be-analyzed-use-the-sonarscanner-for-net-5-x-or-higher/73468 "2022-09-23T12:21:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarioFlores](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/darioflores/32/50982_2.png) [@DarioFlores](https://community.sonarsource.com/u/DarioFlores)\
**Post date:** [September 23, 2022, 12:21pm UTC](https://community.sonarsource.com/t/your-project-contains-c-files-which-cannot-be-analyzed-use-the-sonarscanner-for-net-5-x-or-higher/73468/1 "2022-09-23T12:21:04Z")

</div>

Windows Server 2022  
SQL Server 2019  
SonarQube 9.6.1 DE  
JAVA SE 17

Hello community.

This time I want to ask about the problem I have when analyzing a NET CORE 6.0 project where when executing it throws the error

“Your project contains C# files which cannot be analyzed with the scanner you are using. To analyze C# or [VB.NET](http://VB.NET), you must use the SonarScanner for .NET 5.x or higher, see [SonarScanner for .NET | SonarQube Docs](https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html)”

any ideas?

Thank you  
Dario Flores

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [September 23, 2022, 1:42pm UTC](https://community.sonarsource.com/t/your-project-contains-c-files-which-cannot-be-analyzed-use-the-sonarscanner-for-net-5-x-or-higher/73468/2 "2022-09-23T13:42:30Z")

</div>

Hey there.

Have you read the documentation that the error message links?

[https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html](https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html)

---

<div class="post-metadata">

**Author:** ![DarioFlores](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/darioflores/32/50982_2.png) [@DarioFlores](https://community.sonarsource.com/u/DarioFlores)\
**Post date:** [September 23, 2022, 1:58pm UTC](https://community.sonarsource.com/t/your-project-contains-c-files-which-cannot-be-analyzed-use-the-sonarscanner-for-net-5-x-or-higher/73468/3 "2022-09-23T13:58:03Z")

</div>

Hi Colin.

First of all thanks for replying.

If I read this documentation:  
\*)I have the requirements.  
\*) I have dotnet-sonarscanner  
\*) Task sonar DevOps Extension 5.8.0

I’m running it from DevOps in a pipeline.

something I didn’t do?

Thank you

---

<div class="post-metadata">

**Author:** ![DarioFlores](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/darioflores/32/50982_2.png) [@DarioFlores](https://community.sonarsource.com/u/DarioFlores)\
**Post date:** [October 5, 2022, 12:14pm UTC](https://community.sonarsource.com/t/your-project-contains-c-files-which-cannot-be-analyzed-use-the-sonarscanner-for-net-5-x-or-higher/73468/4 "2022-10-05T12:14:38Z")

</div>

Good.

I continue with the problem, and I pass more information to see if someone can help me.

On the one hand, the pipeline logs tell me:

# ##[section]Starting: Run Code Analysis

Task : Run Code Analysis  
Description : Run scanner and upload the results to the SonarQube server.  
Version : 5.8.0  
Author : sonarsource

and on the other it keeps throwing this:

WARN: Your project contains C# files which cannot be analyzed with the scanner you are using. To analyze C# or [VB.NET](http://VB.NET), you must use the SonarScanner for .NET 5.x or higher, see [Installing the scanner | SonarQube Server 2025.5 | Sonar Documentation](https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html)

I really don’t understand what the problem is ☹

---

<div class="post-metadata">

**Author:** ![DarioFlores](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/darioflores/32/50982_2.png) [@DarioFlores](https://community.sonarsource.com/u/DarioFlores)\
**Post date:** [October 14, 2022, 2:30pm UTC](https://community.sonarsource.com/t/your-project-contains-c-files-which-cannot-be-analyzed-use-the-sonarscanner-for-net-5-x-or-higher/73468/5 "2022-10-14T14:30:43Z")

</div>

Hello @Colin

Any idea what could be happening to me?

Thank you  
Dario Flores
