10 instantiations of NuGetOperationException
aspire (6)
NuGet\NuGetClient.cs (6)
258
throw new
NuGetOperationException
(output.Text);
267
throw new
NuGetOperationException
(output.Text);
281
throw new
NuGetOperationException
(output.Text);
455
throw new
NuGetOperationException
(output.Text);
504
throw new
NuGetOperationException
(output.Text);
561
throw new
NuGetOperationException
(output.Text);
Aspire.Cli.Tests (4)
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (1)
184
? throw new
NuGetOperationException
("Lookup failed.")
NuGet\BundleNuGetPackageCacheTests.cs (1)
363
var expectedException = new
NuGetOperationException
("Error: Search failed." + Environment.NewLine);
NuGet\BundleNuGetServiceTests.cs (2)
315
RestoreCallback = (_, _, _, _, _, _, _, _, _, _) => throw new
NuGetOperationException
(output)
338
WriteManifestCallback = (_, _, _, _, _) => throw new
NuGetOperationException
(output)
17 references to NuGetOperationException
aspire (9)
NuGet\BundleNuGetPackageCache.cs (1)
167
catch (
NuGetOperationException
ex)
NuGet\BundleNuGetService.cs (3)
171
catch (
NuGetOperationException
ex)
188
catch (
NuGetOperationException
ex)
343
catch (
NuGetOperationException
exception)
NuGet\NuGetClient.cs (4)
37
/// <see cref="
NuGetOperationException
"/>, whose <see cref="
NuGetOperationException
.Output"/> is the text the helper
270
catch (Exception ex) when (ex is not OperationCanceledException and not
NuGetOperationException
)
1211
/// 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 (8)
NuGet\BundleNuGetPackageCacheTests.cs (1)
363
var
expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\NuGetClientTests.cs (7)
526
var
exception = await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(
555
var
exception = await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(
625
await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(
1319
var
exception = await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(