10 instantiations of NuGetPackageNotFoundException
dotnet (6)
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
353
throw new
NuGetPackageNotFoundException
($"Requested workload version {packageVersion} of {id} but found version {downloadedPackageVersion} instead.");
NugetPackageDownloader\NuGetPackageDownloader.cs (5)
113
throw new
NuGetPackageNotFoundException
(
498
throw new
NuGetPackageNotFoundException
(
573
throw new
NuGetPackageNotFoundException
(
584
throw new
NuGetPackageNotFoundException
(
714
throw new
NuGetPackageNotFoundException
(string.Format(CliStrings.IsNotFoundInNuGetFeeds,
Microsoft.DotNet.Tools.Tests.ComponentMocks (4)
MockNuGetPackageDownloader.cs (3)
69
return Task.FromException<string>(new
NuGetPackageNotFoundException
(string.Format(CliStrings.IsNotFoundInNuGetFeeds, packageId, MOCK_FEEDS_TEXT)));
126
return Task.FromException<NuGetVersion>(new
NuGetPackageNotFoundException
(string.Format(CliStrings.IsNotFoundInNuGetFeeds, packageId, MOCK_FEEDS_TEXT)));
142
return Task.FromException<(NuGetVersion version, PackageSource source)>(new
NuGetPackageNotFoundException
(string.Format(CliStrings.IsNotFoundInNuGetFeeds, packageId, MOCK_FEEDS_TEXT)));
ToolPackageDownloaderMock2.cs (1)
121
throw new
NuGetPackageNotFoundException
(string.Format(CliStrings.IsNotFoundInNuGetFeeds, $"Version {packageVersion} of {packageId}", MockNuGetPackageDownloader.MOCK_FEEDS_TEXT));
13 references to NuGetPackageNotFoundException
dotnet (7)
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (3)
363
catch (Exception ex) when (ex is
NuGetPackageNotFoundException
|| ex.InnerException is
NuGetPackageNotFoundException
)
365
throw new GracefulException(string.Format(CliCommandStrings.WorkloadVersionRequestedNotFound, workloadSetVersion), ex is
NuGetPackageNotFoundException
? ex : ex.InnerException);
Commands\Workload\Install\WorkloadManifestUpdater.cs (2)
291
catch (
NuGetPackageNotFoundException
)
331
catch (
NuGetPackageNotFoundException
)
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (2)
91
catch (
NuGetPackageNotFoundException
)
183
catch (
NuGetPackageNotFoundException
)
dotnet.Tests (2)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (2)
193
var
ex = Assert.Throws<
NuGetPackageNotFoundException
>(() => toolInstallGlobalOrToolPathCommand.Execute());
Microsoft.DotNet.PackageInstall.Tests (4)
NuGetPackageInstallerTests.cs (4)
48
await Assert.ThrowsAsync<
NuGetPackageNotFoundException
>(() =>
68
await Assert.ThrowsAsync<
NuGetPackageNotFoundException
>(() =>
85
await Assert.ThrowsAsync<
NuGetPackageNotFoundException
>(() =>
120
await Assert.ThrowsAsync<
NuGetPackageNotFoundException
>(() =>