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