15 instantiations of ProjectUpdaterException
aspire (15)
Projects\FallbackProjectParser.cs (2)
54throw new ProjectUpdaterException($"Unsupported project file type: {projectFile.Extension}. Expected .csproj or .cs file."); 65throw new ProjectUpdaterException($"Failed to parse project file '{projectFile.FullName}' using fallback parser: {ex.Message}", ex);
Projects\ProjectUpdater.cs (13)
84throw new ProjectUpdaterException(UpdateCommandStrings.FailedDiscoverNuGetConfig); 184throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName)); 247return latestPackage ?? throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.NoPackageFoundFormat, packageId, context.Channel.Name)); 291throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 306throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName)); 322throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName)); 342throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 396var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.ProjectReferenceNoFullPath); 407var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.PackageReferenceNoIdentity); 541throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 548throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 622throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName)); 643throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName));
12 references to ProjectUpdaterException
aspire (4)
Commands\UpdateCommand.cs (1)
173catch (ProjectUpdaterException ex)
Projects\FallbackProjectParser.cs (1)
57catch (ProjectUpdaterException)
Projects\ProjectUpdater.cs (2)
202catch (ProjectUpdaterException ex) when (IsAppHostProject(projectFile, context)) 555catch (ProjectUpdaterException)
Aspire.Cli.Tests (8)
Projects\FallbackProjectParserTests.cs (3)
156Assert.Throws<ProjectUpdaterException>(() => 410var exception = Assert.Throws<ProjectUpdaterException>(() =>
Projects\ProjectUpdaterTests.cs (5)
1273var exception = await Assert.ThrowsAsync<ProjectUpdaterException>(async () => 1383var exception = await Assert.ThrowsAsync<ProjectUpdaterException>(async () => 1663await Assert.ThrowsAsync<ProjectUpdaterException>(() =>