63 references to InstallerErrorCode
Microsoft.TemplateEngine.Abstractions (17)
Installer\CheckUpdateResult.cs (3)
23InstallerErrorCode error, 68/// <param name="error">error code, see <see cref="InstallerErrorCode"/> for details.</param> 74InstallerErrorCode error,
Installer\InstallerOperationResult.cs (5)
13protected InstallerOperationResult(InstallerErrorCode error, string? errorMessage, IManagedTemplatePackage? templatePackage = null) 22Error = InstallerErrorCode.Success; 28/// <see cref="InstallerErrorCode.Success"/> if the operation completed successfully. 30public InstallerErrorCode Error { get; } 45public bool Success => Error == InstallerErrorCode.Success;
Installer\InstallResult.cs (3)
20private InstallResult(InstallRequest request, InstallerErrorCode error, string errorMessage, IReadOnlyList<VulnerabilityInfo> vulnerabilities) 53/// <param name="error">error code, see <see cref="InstallerErrorCode"/> for details.</param> 57public static InstallResult CreateFailure(InstallRequest request, InstallerErrorCode error, string localizedFailureMessage, IReadOnlyList<VulnerabilityInfo> vulnerabilities) => new InstallResult(request, error, localizedFailureMessage, vulnerabilities);
Installer\UninstallResult.cs (3)
19private UninstallResult(InstallerErrorCode error, string errorMessage, IManagedTemplatePackage templatePackage) 42/// <param name="error">error code, see <see cref="InstallerErrorCode"/> for details.</param> 45public static UninstallResult CreateFailure(IManagedTemplatePackage templatePackage, InstallerErrorCode error, string localizedFailureMessage)
Installer\UpdateResult.cs (3)
20private UpdateResult(UpdateRequest request, InstallerErrorCode error, string errorMessage, IReadOnlyList<VulnerabilityInfo> vulnerabilities) 60/// <param name="error">error code, see <see cref="InstallerErrorCode"/> for details.</param> 64public static UpdateResult CreateFailure(UpdateRequest request, InstallerErrorCode error, string localizedFailureMessage, IReadOnlyList<VulnerabilityInfo> vulnerabilities)
Microsoft.TemplateEngine.Cli (19)
TemplatePackageCoordinator.cs (5)
269resultStatus = result.Error == InstallerErrorCode.PackageNotFound ? NewCommandStatus.NotFound : NewCommandStatus.InstallFailed; 819case InstallerErrorCode.InvalidSource: 825case InstallerErrorCode.PackageNotFound: 834case InstallerErrorCode.UnsupportedRequest: 840case InstallerErrorCode.GenericError:
TemplatePackageDisplay.cs (14)
130case InstallerErrorCode.InvalidSource: 137case InstallerErrorCode.PackageNotFound: 143case InstallerErrorCode.DownloadFailed: 149case InstallerErrorCode.UnsupportedRequest: 155case InstallerErrorCode.AlreadyInstalled: 164case InstallerErrorCode.UpdateUninstallFailed: 170case InstallerErrorCode.InvalidPackage: 177case InstallerErrorCode.VulnerablePackage: 211case InstallerErrorCode.GenericError: 339case InstallerErrorCode.InvalidSource: 345case InstallerErrorCode.PackageNotFound: 354case InstallerErrorCode.UnsupportedRequest: 360case InstallerErrorCode.VulnerablePackage when result.Vulnerabilities.Any(): 369case InstallerErrorCode.GenericError:
Microsoft.TemplateEngine.Edge (27)
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (10)
139InstallerErrorCode.UnsupportedRequest, 147InstallerErrorCode.UnsupportedRequest, 234(InstallerErrorCode result, string message) = await EnsureInstallPrerequisites(packages, updateRequest.TemplatePackage.Identifier, updateRequest.Version, updateRequest.TemplatePackage.Installer, cancellationToken, update: true).ConfigureAwait(false); 235if (result != InstallerErrorCode.Success) 258private async Task<(InstallerErrorCode, string)> EnsureInstallPrerequisites(List<TemplatePackageData> packagesInSettings, string identifier, string? version, IInstaller installer, CancellationToken cancellationToken, bool update = false, bool forceUpdate = false) 268return (InstallerErrorCode.AlreadyInstalled, string.Format(LocalizableStrings.GlobalSettingsTemplatePackageProvider_InstallResult_Error_PackageAlreadyInstalled, packageToBeUpdated.DisplayName)); 290return (InstallerErrorCode.UpdateUninstallFailed, uninstallResult.ErrorMessage); 302return (InstallerErrorCode.Success, string.Empty); 310(InstallerErrorCode result, string message) = await EnsureInstallPrerequisites( 317if (result != InstallerErrorCode.Success)
Installers\Folder\FolderInstaller.cs (1)
66InstallerErrorCode.PackageNotFound,
Installers\NuGet\NuGetInstaller.cs (16)
144InstallerErrorCode.PackageNotFound, 156InstallerErrorCode.InvalidSource, 164InstallerErrorCode.GenericError, 172InstallerErrorCode.VulnerablePackage, 181InstallerErrorCode.GenericError, 190InstallerErrorCode.UnsupportedRequest, 206InstallerErrorCode.UnsupportedRequest, 262InstallerErrorCode.DownloadFailed, 270InstallerErrorCode.PackageNotFound, 282InstallerErrorCode.InvalidSource, 290InstallerErrorCode.InvalidPackage, 298InstallerErrorCode.VulnerablePackage, 306InstallerErrorCode.GenericError, 315InstallerErrorCode.GenericError, 341InstallerErrorCode.UnsupportedRequest, 354InstallerErrorCode.GenericError,