# SonarScanner VSTS Extension no longer scanning C#

**URL:** <https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315>\
**Category:** SonarQube Server / Community Build\
**Tags:** tfs, marketplace, dotnet, scanner\
**Created:** [November 11, 2020, 10:47am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315 "2020-11-11T10:47:53Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [November 23, 2020, 10:43am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/22 "2020-11-23T10:43:10Z")

</div>

Thanks - Let me know if you need anything further from us 🙂

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [November 25, 2020, 6:12pm UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/23 "2020-11-25T18:12:25Z")

</div>

Hi @mickaelcaro - Sorry to chase again. Just wondering if you’ve got any updates on this ? This is a critical aspect to our builds/deployments. Thanks

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [November 26, 2020, 8:42am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/24 "2020-11-26T08:42:44Z")

</div>

Hi @ArronH

Would it be possible for you to run the analysis with at least the current LTS (7.9) of SonarQube side by side (i don’t want you to upgrade -yet-) to see if the analysis goes well again ? Just for me to see if that issue is related to this old version of SQ only.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [November 26, 2020, 9:08am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/25 "2020-11-26T09:08:55Z")

</div>

Hi @mickaelcaro - It may take a while but I’ll start working on installing that version on another instance and try the build however I have seen this post [C# Files are not being analyzed with Sonar Cloud and Azure DevOps pipeline](https://community.sonarsource.com/t/c-files-are-not-being-analyzed-with-sonar-cloud-and-azure-devops-pipeline/34313) which seems to be the same issue and he was using a later version of sonar (Enterprise v8.4.1) ?

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [November 26, 2020, 9:14am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/26 "2020-11-26T09:14:55Z")

</div>

I don’t think this is the same issue (even if the final “error” is the same), that’s the point 🙂

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [November 26, 2020, 9:36am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/27 "2020-11-26T09:36:49Z")

</div>

Ok , will try get it running on v7.9 and let you know the outcome

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [November 26, 2020, 3:31pm UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/28 "2020-11-26T15:31:55Z")

</div>

@mickaelcaro - Were in the progress of getting a new instance setup with that version however it may take a while to setup as we have to speak with other teams internally to get firewall rules applied etc…

Is there anything else in the meantime we can do to try do to troubleshoot further on the current version?

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [November 30, 2020, 5:18pm UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/29 "2020-11-30T17:18:19Z")

</div>

@mickaelcaro - I’m still working on trying to get a build running on a later version - Facing a few other issues not related.

Is there anything else we can try in the meantime on the current version ?

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [December 1, 2020, 7:29am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/30 "2020-12-01T07:29:50Z")

</div>

Hi @ArronH

I’m sorry i’m not in full time searching for a solution here, i might be able to work on it end of this week.

I don’t see any obvious workaround of test to do here, i’ll let you know if i find one.

Sorry for the inconvenience !

Mickaël

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [December 2, 2020, 4:29pm UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/31 "2020-12-02T16:29:28Z")

</div>

Hi @mickaelcaro - I’ve ran a build on the SonarQube version you mentioned and it still scans C# so it looks like the latest version of the sonar tfs extension isn’t compatible with the current version of our SonarQube instance. We’ll look to upgrade this.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [December 3, 2020, 6:12am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/32 "2020-12-03T06:12:24Z")

</div>

Hi @ArronH

Glad it works with that version. However i need to know on my side what is causing this. I’m running out of time these day to look at that but i’ll do my best.

Would you be able to send me a reproducer maybe ? That would be super helpful.

Mickaël

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [December 3, 2020, 8:58am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/33 "2020-12-03T08:58:53Z")

</div>

Hi @mickaelcaro

It would be good to find out what the issue is and potentially fix/provide a workaround for this SonarQube version as we haven’t upgraded our instance for a while so we’re not fully prepared at the moment to do this on our production instance.

Regarding sending you a reproducer - Can I just check you’re referring to this [C++ developers now benefit from more efficient analysis and deeper Core Guidelines coverage](https://community.sonarsource.com/t/c-developers-now-benefit-from-more-efficient-analysis-and-deeper-core-guidelines-coverage/18393) ? - If so I’m assuming I should run this on our current version where the code fails to scan C#. How would I enable this , would just adding ’ sonar.cfamily.reproducer=true’ to a the variable within the tfs build be sufficient?

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [December 3, 2020, 10:36am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/34 "2020-12-03T10:36:47Z")

</div>

@mickaelcaro - I’m trying now to add that variable. Looks like I should be adding a path to the variable value as suggested here [https://jira.sonarsource.com/browse/CPP-850](https://jira.sonarsource.com/browse/CPP-850) rather than =true so I’m trying that now however if the step doesn’t fail (which it doesn’t) will this fail to output this file ?

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [December 3, 2020, 10:51am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/35 "2020-12-03T10:51:14Z")

</div>

That didn’t seem to output any file when specifying a location on the variable. I’ll await your reply to advise before doing any other actions 🙂 - Thanks

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [December 3, 2020, 3:04pm UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/36 "2020-12-03T15:04:01Z")

</div>

Hi @ArronH

No it’s not that, i was just seeking for a sample project that reproduce this issue.

Mickaël

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [December 3, 2020, 4:02pm UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/37 "2020-12-03T16:02:42Z")

</div>

Hi @mickaelcaro - I wouldn’t be able to share our code with you I’m afraid (I think that’s the ask?). Do you have any projects internally that you can use ? I would have thought the issue would occur with any C# projects that use the version of SonarQube we are using (v6.7.4) and the latest tfs extension (v4.17.0).

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [December 4, 2020, 7:23am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/38 "2020-12-04T07:23:35Z")

</div>

Yep. No problem, thanks anyway !

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [December 8, 2020, 7:17am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/39 "2020-12-08T07:17:09Z")

</div>

Hi @ArronH

I’m currently trying to investigate this issue (finally ! ) Can you please give me the version of the C# analyzer you have currently installed on your SQ 6.7 instance please ?

Thanks !

---

<div class="post-metadata">

**Author:** ![ArronH](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@ArronH](https://community.sonarsource.com/u/ArronH)\
**Post date:** [December 8, 2020, 8:55am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/40 "2020-12-08T08:55:09Z")

</div>

Hi @mickaelcaro

Were using v6.5 (build 3766). Let me know if you need anything else.

Thanks

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [December 8, 2020, 9:02am UTC](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315/41 "2020-12-08T09:02:54Z")

</div>

Is that a possibility for you to update this analyzer to at least version 6.7 ?

[Previous page](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315.md?page=1)

[Next page](https://community.sonarsource.com/t/sonarscanner-vsts-extension-no-longer-scanning-c/34315.md?page=3)
