# Code analysis for C# AND JavaScript

**URL:** <https://community.sonarsource.com/t/code-analysis-for-c-and-javascript/111373>\
**Category:** SonarQube Cloud\
**Tags:** dotnet\
**Created:** [March 15, 2024, 10:54am UTC](https://community.sonarsource.com/t/code-analysis-for-c-and-javascript/111373 "2024-03-15T10:54:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilanperera](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dilanperera/32/55527_2.png) [@dilanperera](https://community.sonarsource.com/u/dilanperera)\
**Post date:** [March 15, 2024, 10:54am UTC](https://community.sonarsource.com/t/code-analysis-for-c-and-javascript/111373/1 "2024-03-15T10:54:01Z")

</div>

We are trying to get SonarCloud integrated into one of our Visual Studio solutions through an Azure DevOps pipeline. This solution has multiple .NET Core projects with C#/.NET code and it also contains a frontend SPA developed using languages such as PL/SQL, JavaScript/TypeScript, CSS and HTML.

We are struggling to get code analysis of the entire codebase reported to the SonarCloud project.

When we set up a SonarCloudPrepare@1 step with scannerMode set to ‘MSBuild’ it doesn’t report any frontend SPA code scanning results.

When we set up a SonarCloudPrepare@1 step with scannerMode set to ‘CLI’ it doesn’t report any C#/.NET code scanning results.

I’m just wondering if anyone managed to get both C#/.NET and JavaScript code analysis reported into a single SonarCloud project via an Azure DevOps pipeline…

Many Thanks,

Dilan Perera.

---

<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:** [March 18, 2024, 7:39am UTC](https://community.sonarsource.com/t/code-analysis-for-c-and-javascript/111373/2 "2024-03-18T07:39:21Z")

</div>

Hey there.

Take a look [at these docs](https://docs.sonarsource.com/sonarcloud/advanced-setup/ci-based-analysis/sonarscanner-for-net/#analyzing-languages-other-than-c-and-vb).

---

<div class="post-metadata">

**Author:** ![dilanperera](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dilanperera/32/55527_2.png) [@dilanperera](https://community.sonarsource.com/u/dilanperera)\
**Post date:** [March 22, 2024, 5:28pm UTC](https://community.sonarsource.com/t/code-analysis-for-c-and-javascript/111373/3 "2024-03-22T17:28:13Z")

</div>

Thanks, Colin! highly appreciated…

Meanwhile, I found the following answer with a code example and my issue is now resolved.

> [@Typescript files are not analyzed with Scanner for MSBuild](https://community.sonarsource.com/t/typescript-files-are-not-analyzed-with-scanner-for-msbuild/10407/1):
>
> We have two [ASP.NET](http://ASP.NET) core 2.2 project with a seperate folder for shared Typescript code. When we build the [ASP.NET](http://ASP.NET) core project with MSBuild the Typescript folder which is used is not analyzed by SonarScanner. The Typescript code is build with Yarn tasks. How do we make sure that the Typescript code is analysed within the Azure DevOps build pipeline? SonarCloud private SonarScanner for MSBuild 4.6.2

Cheers,

Dilan.
