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,
158
InstallerErrorCode
.InvalidSource,
166
InstallerErrorCode
.GenericError,
174
InstallerErrorCode
.VulnerablePackage,
183
InstallerErrorCode
.GenericError,
192
InstallerErrorCode
.UnsupportedRequest,
208
InstallerErrorCode
.UnsupportedRequest,
266
InstallerErrorCode
.DownloadFailed,
274
InstallerErrorCode
.PackageNotFound,
288
InstallerErrorCode
.InvalidSource,
296
InstallerErrorCode
.InvalidPackage,
304
InstallerErrorCode
.VulnerablePackage,
312
InstallerErrorCode
.GenericError,
321
InstallerErrorCode
.GenericError,
347
InstallerErrorCode
.UnsupportedRequest,
360
InstallerErrorCode
.GenericError,