33 references to ProjectUpdaterException
aspire (33)
DotNet\DotNetAppHostNuGetConfigMerger.cs (2)
147throw new ProjectUpdaterException(string.Format( 260throw new ProjectUpdaterException(string.Format(
DotNet\DotNetAppHostUpdateTransaction.cs (1)
45throw new ProjectUpdaterException(UpdateCommandStrings.DryRunBackupsNotReplaced);
DotNet\DotNetRestoreConfiguration.cs (1)
33throw new ProjectUpdaterException(
NuGet\NuGetConfigurationBuilder.cs (1)
60throw new ProjectUpdaterException(string.Format(
Projects\FallbackProjectParser.cs (1)
112throw new ProjectUpdaterException($"Unsupported project file type: {projectFile.Extension}. Expected .csproj, .fsproj, .vbproj or .cs file.");
Projects\GuestAppHostProject.cs (1)
2020throw new ProjectUpdaterException(string.Format(
Projects\ProjectUpdater.cs (21)
40throw new ProjectUpdaterException(UpdateCommandStrings.DryRunRequiresChannel); 191throw new ProjectUpdaterException(UpdateCommandStrings.FailedDiscoverNuGetConfig); 385throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedToRestoreAfterUpdateFormat, channel.Name, projectFile.FullName)); 401throw new ProjectUpdaterException(string.Format( 462throw new ProjectUpdaterException(string.Format( 648throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName)); 720throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.NoPackageFoundFormat, packageId, context.Channel.Name)); 755throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 865throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 870throw new ProjectUpdaterException($"Could not uniquely locate the imported Aspire.AppHost.Sdk declaration for '{projectFile.FullName}'. Found {declarations.Length} declaring files; update the imported SDK version explicitly."); 1146throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1161throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName)); 1185throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName)); 1357throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1502var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.ProjectReferenceNoFullPath); 1513var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.PackageReferenceNoIdentity); 1684throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1691throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1766throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName)); 1793throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName)); 1806throw new ProjectUpdaterException($"Expected one declaration of '{package.Id}' in '{definingFile.FullName}', found {references.Length}.");
Projects\RepositoryToolUpdater.cs (5)
193throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.ToolManifestChangedFormat, original.File.FullName)); 254throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.NoPackageFoundFormat, DotNetPackageId, channel.Name)); 265throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.FailedResolveNpmToolFormat, version ?? "latest")); 271return version ?? throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, 313throw new ProjectUpdaterException(string.Format(CultureInfo.CurrentCulture, UpdateCommandStrings.FailedReadToolManifestFormat, path, ex.Message));