How to do license check for C# project

Hi,
I can see the licensecheck plugin in sonarqube which only supports maven and npm. Is there any plugin or way to do licenseCheck for C# projects using sonarqube??

What do you want to do with the results, if I may ask? I turns out that you can do something like this: How to collect license information for libraries in a .NET application using NuGet License Utility

Or do you want to prevent certain licenses from being used? (I’m also interested to find out if that is possible, before potentially starting to build it myself)

Hi corniel, Thanks for the reply . I already know about Nuget License utility. Yes we are trying to prevent certain licenses. We are looking some thing like sonarqube license check plugin

I’m not working for Sonar, and I’m not sure if they have this on their backlog. I’m considering to add this feature to a set of analyzers I’m contributing to, that handles with MS Build files: https://dotnet-project-file-analyzers.github.io

If Sonar has plans to come up with a solution, that would be great though. :slight_smile:

Thanks corniel for your reply

Hello,

This is in our backlog and we want to release it in 2025.

Alex

Hello from the future!

We recently announced SonarQube Advanced Security, which will include SCA capabilities. While it’s not available yet, we expect general availability for SonarQube Server in May 2025, and SonarQube Cloud Enterprise shortly after.

Please see this announcement for more details.