{"record":{"id":"21d5936f2feddb2d","repo":"microsoft/aspire","slug":"no-integration-packages-were-found-please-check-your","errorCode":null,"errorMessage":"No integration packages were found. Please check your internet connection or NuGet source configuration.","messagePattern":"No integration packages were found\\. Please check your internet connection or NuGet source configuration\\.","errorType":"exception","errorClass":"EmptyChoicesException","httpStatus":null,"severity":"error","filePath":"src/Aspire.Cli/Commands/AddCommand.cs","lineNumber":203,"sourceCode":"                    packagesWithChannels = discoveredPackages as List<(NuGetPackage Package, PackageChannel Channel)> ?? discoveredPackages.ToList();\n                    polyglotCompatibleIds = discoveredPolyglotIds;\n                }\n                else\n                {\n                    var discoveredPackages = await InteractionService.ShowStatusAsync(\n                        AddCommandStrings.SearchingForAspirePackages,\n                        async () => await _integrationPackageSearchService.GetIntegrationPackagesWithChannelsAsync(effectiveAppHostProjectFile.Directory!, configuredChannel, cancellationToken));\n                    packagesWithChannels = discoveredPackages as List<(NuGetPackage Package, PackageChannel Channel)> ?? discoveredPackages.ToList();\n                }\n\n                var packageCount = packagesWithChannels.Count;\n                searchPackagesActivity.SetAddPackageSearchResultCount(packageCount);\n                addActivity.SetAddPackageSearchResultCount(packageCount);\n            }\n\n            if (packagesWithChannels.Count == 0)\n            {\n                throw new EmptyChoicesException(AddCommandStrings.NoIntegrationPackagesFound);\n            }\n\n            var packagesWithShortName = packagesWithChannels.Select(IntegrationPackageSearchService.GenerateFriendlyName).OrderBy(p => p.FriendlyName, new CommunityToolkitFirstComparer()).ToList();\n\n            if (packagesWithShortName.Count == 0)\n            {\n                return AddCommandFailure(CliExitCodes.FailedToAddPackage, AddCommandStrings.NoPackagesFound);\n            }\n\n            if (applyPolyglotFilter)\n            {\n                bool MatchesIntegrationName((string FriendlyName, NuGetPackage Package, PackageChannel Channel) p)\n                    => p.FriendlyName == integrationName || p.Package.Id == integrationName;\n\n                // If the user named a specific integration that exists but is not polyglot-compatible, give a\n                // precise, actionable error rather than silently dropping it and fuzzy-matching something else.\n                if (integrationName is not null\n                    && packagesWithShortName.Any(p => MatchesIntegrationName(p) && !polyglotCompatibleIds.Contains(p.Package.Id))","sourceCodeStart":185,"sourceCodeEnd":221,"githubUrl":"https://github.com/microsoft/aspire/blob/25830f84bd145686607ad00c057b3f84e2e51d43/src/Aspire.Cli/Commands/AddCommand.cs#L185-L221","documentation":"AddCommand throws EmptyChoicesException with this message when the integration package search over the configured NuGet channels returns zero packages. It is the CLI's way of aborting the interactive picker when there is nothing to list.","triggerScenarios":"Running 'aspire add' when NuGet source queries return no integration packages: no network access, misconfigured NuGet sources, all channels filtered out, or an empty/incorrect package feed.","commonSituations":"Working offline or behind a corporate proxy blocking nuget.org; NuGet.config pointing only at private feeds lacking Aspire packages; a broken CLI channel configuration.","solutions":["Check internet connectivity and any proxy settings","Verify NuGet source configuration (NuGet.config) includes a feed carrying Aspire integration packages","Inspect/reset the CLI channel configuration (aspire config) so valid channels are searched","Retry after the feed outage; if using a local hive (ASPIRE_CLI_PACKAGES), ensure it is populated"],"exampleFix":null,"handlingStrategy":"retry","validationCode":"// connectivity probe\nusing var hc = new HttpClient();\nawait hc.GetAsync(\"https://api.nuget.org/v3/index.json\");","typeGuard":null,"tryCatchPattern":"try { /* aspire add ... */ }\ncatch (EmptyChoicesException ex) when (ex.Message.Contains(\"No integration packages\"))\n{\n    // check network/NuGet sources, then retry\n}","preventionTips":["Verify NuGet.config sources include a feed with Aspire packages","Check proxy/firewall settings for build/CI environments","Keep the aspire CLI channel configuration valid"],"tags":["nuget","network","cli","packages"],"backgroundTag":"empty-result-set","analyzedSha":"25830f84bd145686607ad00c057b3f84e2e51d43","analyzedAt":"2026-09-16T11:10:06.193Z","contentChangedAt":"2026-09-16T11:10:06.193Z","schemaVersion":2},"datasetVersion":"2026-09-21T09:17:21.228Z"}