29 references to ProjectUpdaterException
aspire (29)
DotNet\DotNetAppHostNuGetConfigMerger.cs (1)
137throw new ProjectUpdaterException(string.Format(
DotNet\DotNetRestoreConfiguration.cs (1)
32throw new ProjectUpdaterException(
Projects\FallbackProjectParser.cs (1)
110throw new ProjectUpdaterException($"Unsupported project file type: {projectFile.Extension}. Expected .csproj, .fsproj, .vbproj or .cs file.");
Projects\GuestAppHostProject.cs (1)
2016throw new ProjectUpdaterException(string.Format(
Projects\ProjectUpdater.cs (20)
181throw new ProjectUpdaterException(UpdateCommandStrings.FailedDiscoverNuGetConfig); 335throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedToRestoreAfterUpdateFormat, projectFile.FullName)); 347throw new ProjectUpdaterException(string.Format( 407throw new ProjectUpdaterException(string.Format( 602throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName)); 674throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.NoPackageFoundFormat, packageId, context.Channel.Name)); 709throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 819throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 824throw 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."); 1100throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1115throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName)); 1139throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName)); 1311throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1442var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.ProjectReferenceNoFullPath); 1453var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new ProjectUpdaterException(UpdateCommandStrings.PackageReferenceNoIdentity); 1623throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1630throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, 1704throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName)); 1730throw new ProjectUpdaterException(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName)); 1743throw 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));