16 instantiations of ProjectUpdaterException
aspire (16)
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 (14)
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)); 392throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 407throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName)); 425throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName)); 554throw new ProjectUpdaterException( 576throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 630var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.ProjectReferenceNoFullPath); 641var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.PackageReferenceNoIdentity); 781throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 788throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 862throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName)); 883throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName));
12 references to ProjectUpdaterException
aspire (4)
Commands\UpdateCommand.cs (1)
217catch (ProjectUpdaterException ex)
Projects\FallbackProjectParser.cs (1)
57catch (ProjectUpdaterException)
Projects\ProjectUpdater.cs (2)
202catch (ProjectUpdaterException ex) when (IsAppHostProject(projectFile, context)) 795catch (ProjectUpdaterException)
Aspire.Cli.Tests (8)
Projects\FallbackProjectParserTests.cs (3)
200Assert.Throws<ProjectUpdaterException>(() => 362var exception = Assert.Throws<ProjectUpdaterException>(() =>
Projects\ProjectUpdaterTests.cs (5)
1262var exception = await Assert.ThrowsAsync<ProjectUpdaterException>(async () => 1372var exception = await Assert.ThrowsAsync<ProjectUpdaterException>(async () => 1652await Assert.ThrowsAsync<ProjectUpdaterException>(() =>