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