11 instantiations of NuGetOperationException
aspire (7)
NuGet\NuGetClient.cs (7)
274
throw new
NuGetOperationException
(output.Text);
283
throw new
NuGetOperationException
(output.Text);
297
throw new
NuGetOperationException
(output.Text);
472
throw new
NuGetOperationException
(output.Text);
521
throw new
NuGetOperationException
(output.Text);
583
throw new
NuGetOperationException
(output.Text);
788
throw new
NuGetOperationException
(ErrorStrings.FailedToParsePackageSearchResults);
Aspire.Cli.Tests (4)
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (1)
184
? throw new
NuGetOperationException
("Lookup failed.")
NuGet\BundleNuGetPackageCacheTests.cs (1)
418
var expectedException = new
NuGetOperationException
("Error: Search failed." + Environment.NewLine);
NuGet\BundleNuGetServiceTests.cs (2)
508
RestoreCallback = (_, _, _, _, _, _, _, _, _, _) => throw new
NuGetOperationException
(output)
531
WriteManifestCallback = (_, _, _, _, _) => throw new
NuGetOperationException
(output)
21 references to NuGetOperationException
aspire (9)
NuGet\BundleNuGetPackageCache.cs (1)
181
catch (
NuGetOperationException
ex)
NuGet\BundleNuGetService.cs (3)
176
catch (
NuGetOperationException
ex)
195
catch (
NuGetOperationException
ex)
391
catch (
NuGetOperationException
exception)
NuGet\NuGetClient.cs (4)
38
/// <see cref="
NuGetOperationException
"/>, whose <see cref="
NuGetOperationException
.Output"/> is the text the helper
286
catch (Exception ex) when (ex is not OperationCanceledException and not
NuGetOperationException
)
1274
/// exception message when the operation failed. This buffers the same text for <see cref="
NuGetOperationException
"/>
Templating\TemplateEngineFactory.NuGetValues.cs (1)
62
catch (
NuGetOperationException
ex)
Aspire.Cli.Tests (12)
NuGet\BundleNuGetPackageCacheTests.cs (1)
418
var
expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\NuGetClientTests.cs (11)
61
var
failure = await Assert.ThrowsAsync<
NuGetOperationException
>(AcquireAsync);
503
var
exception = Assert.Throws<
NuGetOperationException
>(() => client.ResolveSdkPackageSearchSourceNames(
769
var
exception = await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(
798
var
exception = await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(
868
await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(
1562
var
exception = await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(