sonarqube-roslyn-sdk icon indicating copy to clipboard operation
sonarqube-roslyn-sdk copied to clipboard

No packages with the specified id were found

Open vb123er951 opened this issue 3 years ago • 2 comments

Hi, I am trying to use the sonarqube.roslyn.sdk to build a custom rule for C#, I already build my .nupkg file from visual studio 2015. While using this sdk it says No packages with the specified id were found, but when I using other .nupkg file it can find the file correctly, can you give some suggestions?

the console output is like:

[DEBUG] Number of packages located: 0 No packages with the specified id were found: ABCAnalyzer

I put the .nupkg in the same directory with RoslynSonarQubePluginGenerator.exe, and my command is RoslynSonarQubePluginGenerator.exe /a:ABCAnalyzer

vb123er951 avatar Mar 10 '21 02:03 vb123er951

check if the source is mentioned correctly under the LocalFeed, you need to provide path to the directory where that nuget package is present, if your package is in local machine.

deepanshukhanna avatar Feb 15 '23 06:02 deepanshukhanna

The repo Readme has a section on NuGet feeds: https://github.com/SonarSource/sonarqube-roslyn-sdk#configuring-nuget-feeds

duncanp-sonar avatar Feb 15 '23 09:02 duncanp-sonar

As long as you can reference the package in a .NET project, it raises issues to make sure it works, the package targets supported Roslyn version and you placed it in one of the supported nuget sources, it should work. Othwerwise, we'd need more information about the package.