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