22 instantiations of ProjectUpdaterException
aspire (22)
Projects\FallbackProjectParser.cs (2)
54
throw new
ProjectUpdaterException
($"Unsupported project file type: {projectFile.Extension}. Expected .csproj or .cs file.");
65
throw new
ProjectUpdaterException
($"Failed to parse project file '{projectFile.FullName}' using fallback parser: {ex.Message}", ex);
Projects\ProjectUpdater.cs (15)
98
throw new
ProjectUpdaterException
(UpdateCommandStrings.FailedDiscoverNuGetConfig);
203
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedToRestoreAfterUpdateFormat, projectFile.FullName));
331
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName));
401
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.NoPackageFoundFormat, packageId, context.Channel.Name));
693
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
708
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName));
726
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName));
865
throw new
ProjectUpdaterException
(
887
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
981
var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new
ProjectUpdaterException
(UpdateCommandStrings.ProjectReferenceNoFullPath);
992
var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new
ProjectUpdaterException
(UpdateCommandStrings.PackageReferenceNoIdentity);
1144
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
1151
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
1225
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName));
1253
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName));
Projects\RepositoryToolUpdater.cs (5)
190
throw new
ProjectUpdaterException
(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.ToolManifestChangedFormat, original.File.FullName));
251
throw new
ProjectUpdaterException
(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.NoPackageFoundFormat, DotNetPackageId, channel.Name));
262
throw new
ProjectUpdaterException
(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.FailedResolveNpmToolFormat, version ?? "latest"));
268
return version ?? throw new
ProjectUpdaterException
(string.Format(CultureInfo.CurrentCulture,
310
throw new
ProjectUpdaterException
(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.FailedReadToolManifestFormat, path, ex.Message));
20 references to ProjectUpdaterException
aspire (4)
Commands\UpdateCommand.cs (1)
445
catch (
ProjectUpdaterException
ex)
Projects\FallbackProjectParser.cs (1)
57
catch (
ProjectUpdaterException
)
Projects\ProjectUpdater.cs (2)
349
catch (
ProjectUpdaterException
ex) when (IsAppHostProject(projectFile, context.AppHostProjectFile))
1158
catch (
ProjectUpdaterException
)
Aspire.Cli.Tests (16)
Projects\FallbackProjectParserTests.cs (3)
199
Assert.Throws<
ProjectUpdaterException
>(() =>
361
var
exception = Assert.Throws<
ProjectUpdaterException
>(() =>
Projects\ProjectUpdaterTests.cs (5)
2146
var
exception = await Assert.ThrowsAsync<
ProjectUpdaterException
>(async () =>
2256
var
exception = await Assert.ThrowsAsync<
ProjectUpdaterException
>(async () =>
2536
await Assert.ThrowsAsync<
ProjectUpdaterException
>(() =>
Projects\RepositoryToolUpdaterTests.cs (8)
413
var
exception = await Assert.ThrowsAsync<
ProjectUpdaterException
>(() =>
442
var
exception = await Assert.ThrowsAsync<
ProjectUpdaterException
>(() =>
556
var
exception = await Assert.ThrowsAsync<
ProjectUpdaterException
>(() =>
715
var
exception = await Assert.ThrowsAsync<
ProjectUpdaterException
>(updateStep.Callback);