14 references to ProjectUpdaterException
aspire (14)
Projects\FallbackProjectParser.cs (1)
54
throw new
ProjectUpdaterException
($"Unsupported project file type: {projectFile.Extension}. Expected .csproj or .cs file.");
Projects\ProjectUpdater.cs (13)
84
throw new
ProjectUpdaterException
(UpdateCommandStrings.FailedDiscoverNuGetConfig);
184
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedFetchItemsAndPropertiesFormat, projectFile.FullName));
247
return latestPackage ?? throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.NoPackageFoundFormat, packageId, context.Channel.Name));
291
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
306
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindRootProjectElementFormat, projectFile.FullName));
322
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindSdkElementFormat, projectFile.FullName));
342
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
396
var referencedProjectPath = projectReference.GetProperty("FullPath").GetString() ?? throw new
ProjectUpdaterException
(UpdateCommandStrings.ProjectReferenceNoFullPath);
407
var packageId = packageReference.GetProperty("Identity").GetString() ?? throw new
ProjectUpdaterException
(UpdateCommandStrings.PackageReferenceNoIdentity);
541
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
548
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture,
622
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.CouldNotFindPackageVersionInDirectoryPackagesProps, packageId, directoryPackagesPropsFile.FullName));
643
throw new
ProjectUpdaterException
(string.Format(CultureInfo.InvariantCulture, UpdateCommandStrings.FailedUpdatePackageReferenceFormat, package.Id, projectFile.FullName));