8 instantiations of NuGetOperationException
aspire (5)
NuGet\NuGetClient.cs (5)
162
throw new
NuGetOperationException
(output.Text);
171
throw new
NuGetOperationException
(output.Text);
182
throw new
NuGetOperationException
(output.Text, ex);
340
throw new
NuGetOperationException
(output.Text, ex);
387
throw new
NuGetOperationException
(output.Text, ex);
Aspire.Cli.Tests (3)
NuGet\BundleNuGetPackageCacheTests.cs (1)
354
var expectedException = new
NuGetOperationException
("Error: Search failed." + Environment.NewLine);
NuGet\BundleNuGetServiceTests.cs (2)
136
RestoreCallback = (_, _, _, _, _, _, _, _) => throw new
NuGetOperationException
(output)
156
WriteManifestCallback = (_, _, _, _, _) => throw new
NuGetOperationException
(output)
13 references to NuGetOperationException
aspire (7)
NuGet\BundleNuGetPackageCache.cs (1)
162
catch (
NuGetOperationException
ex)
NuGet\BundleNuGetService.cs (2)
118
catch (
NuGetOperationException
ex)
136
catch (
NuGetOperationException
ex)
NuGet\NuGetClient.cs (4)
33
/// <see cref="
NuGetOperationException
"/>, whose <see cref="
NuGetOperationException
.Output"/> is the text the helper
174
catch (Exception ex) when (ex is not OperationCanceledException and not
NuGetOperationException
)
577
/// exception message when the operation failed. This buffers the same text for <see cref="
NuGetOperationException
"/>
Aspire.Cli.Tests (6)
NuGet\BundleNuGetPackageCacheTests.cs (1)
354
var
expectedException = new NuGetOperationException("Error: Search failed." + Environment.NewLine);
NuGet\NuGetClientTests.cs (5)
196
var
exception = await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(
261
await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(
902
var
exception = await Assert.ThrowsAsync<
NuGetOperationException
>(() => client.RestoreAsync(