I am unable to complete the prerequisite command:
‘dotnet tool install --global dotnet-sonarscanner’
I have dontnet installed, and running this from the dotnet install dir.
I also have the SDK installed, and this file downloaded: dotnet-sonarscanner.6.0.0.nupkg
some details:
C:\Program Files\dotnet>dotnet --version
8.0.101
C:\Program Files\dotnet>dotnet nuget list source
Registered Sources:
- Package source 1 [Enabled]
D:\scanner\dotnet-sonarscanner.6.0.0.nupkg
Whenever I attempt to run ‘dotnet tool install --global dotnet-sonarscanner’ , I get some flavor of the following:
Unhandled exception: Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageNotFoundException: dotnet-sonarscanner::8.0.101 is not found in NuGet feeds D:\scanner\dotnet-sonarscanner.6.0.0.nupkg".
at Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageDownloader.GetPackageMetadataAsync(String packageIdentifier, NuGetVersion packageVersion, IEnumerable1 sources, CancellationToken cancellationToken, Boolean includeUnlisted) at Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageDownloader.GetPackageSourceAndVersion(PackageId packageId, NuGetVersion packageVersion, PackageSourceLocation packageSourceLocation, Boolean includePreview, Boolean includeUnlisted, PackageSourceMapping packageSourceMapping) at Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageDownloader.DownloadPackageAsync(PackageId packageId, NuGetVersion packageVersion, PackageSourceLocation packageSourceLocation, Boolean includePreview, Boolean includeUnlisted, Nullable
1 downloadFolder, PackageSourceMapping packageSourceMapping)
at Microsoft.DotNet.Cli.ToolPackage.ToolPackageDownloader.DownloadAndExtractPackage(PackageLocation packageLocation, PackageId packageId, INuGetPackageDownloader nugetPackageDownloader, String packagesRootPath, IToolPackageStore toolPackageStore, NuGetVersion packageVersion, PackageSourceLocation packageSourceLocation, Boolean includeUnlisted)
at Microsoft.DotNet.Cli.ToolPackage.ToolPackageDownloader.<>c__DisplayClass8_0.b__0()
at Microsoft.DotNet.Cli.TransactionalAction.Run[T](Func`1 action, Action commit, Action rollback)
at Microsoft.DotNet.Tools.Tool.Install.ToolInstallGlobalOrToolPathCommand.Execute()
at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String args, TimeSpan startupTime, ITelemetry telemetryClient)
Im stuck.