17 instantiations of ProjectUpdaterException
aspire (17)
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)
97
throw new
ProjectUpdaterException
(UpdateCommandStrings.FailedDiscoverNuGetConfig);
196
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedToRestoreAfterUpdateFormat, projectFile.FullName));
324
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName));
391
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.NoPackageFoundFormat, packageId, context.Channel.Name));
683
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
698
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName));
716
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName));
855
throw new
ProjectUpdaterException
(
877
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
971
var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new
ProjectUpdaterException
(UpdateCommandStrings.ProjectReferenceNoFullPath);
982
var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new
ProjectUpdaterException
(UpdateCommandStrings.PackageReferenceNoIdentity);
1134
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
1141
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
1215
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName));
1243
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName));
12 references to ProjectUpdaterException
aspire (4)
Commands\UpdateCommand.cs (1)
410
catch (
ProjectUpdaterException
ex)
Projects\FallbackProjectParser.cs (1)
57
catch (
ProjectUpdaterException
)
Projects\ProjectUpdater.cs (2)
342
catch (
ProjectUpdaterException
ex) when (IsAppHostProject(projectFile, context))
1148
catch (
ProjectUpdaterException
)
Aspire.Cli.Tests (8)
Projects\FallbackProjectParserTests.cs (3)
199
Assert.Throws<
ProjectUpdaterException
>(() =>
361
var
exception = Assert.Throws<
ProjectUpdaterException
>(() =>
Projects\ProjectUpdaterTests.cs (5)
2111
var
exception = await Assert.ThrowsAsync<
ProjectUpdaterException
>(async () =>
2221
var
exception = await Assert.ThrowsAsync<
ProjectUpdaterException
>(async () =>
2501
await Assert.ThrowsAsync<
ProjectUpdaterException
>(() =>