115 references to LocalizableStrings
Microsoft.TemplateEngine.Edge (115)
BuiltInManagedProvider\GlobalSettings.cs (1)
99
var wrappedEx = new JsonException(string.Format(
LocalizableStrings
.GlobalSettings_Error_CorruptedSettings, _globalSettingsFile, ex.Message), ex.Path, ex.LineNumber, ex.BytePositionInLine, ex);
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (8)
140
string.Format(
LocalizableStrings
.GlobalSettingsTemplatePackageProvider_InstallResult_Error_PackageCannotBeInstalled, installRequest.PackageIdentifier),
148
string.Format(
LocalizableStrings
.GlobalSettingsTemplatePackageProvider_InstallResult_Error_MultipleInstallersCanBeUsed, installRequest.PackageIdentifier),
268
return (InstallerErrorCode.AlreadyInstalled, string.Format(
LocalizableStrings
.GlobalSettingsTemplatePackageProvider_InstallResult_Error_PackageAlreadyInstalled, packageToBeUpdated.DisplayName));
274
LocalizableStrings
.GlobalSettingsTemplatePackagesProvider_Info_PackageAlreadyInstalled,
277
: $"{packageToBeUpdated.Identifier} ({string.Format(
LocalizableStrings
.Generic_Version, packageToBeUpdated.Version)})",
279
LocalizableStrings
.Generic_LatestVersion :
280
string.Format(
LocalizableStrings
.Generic_Version, version)));
294
LocalizableStrings
.GlobalSettingsTemplatePackagesProvider_Info_PackageUninstalled,
Components\EnvironmentVariablesBindSource.cs (1)
23
string IBindSymbolSource.DisplayName =>
LocalizableStrings
.EnvironmentVariablesBindSource_Name;
Components\HostParametersBindSource.cs (1)
23
string IBindSymbolSource.DisplayName =>
LocalizableStrings
.HostParametersBindSource_Name;
Constraints\ConstraintBase.cs (1)
33
return TemplateConstraintResult.CreateEvaluationFailure(this, ce.Message,
LocalizableStrings
.Generic_Constraint_WrongConfigurationCTA);
Constraints\ConstraintsExtensions.cs (11)
24
return new[] { token.GetValue<string>() ?? throw new ConfigurationException(string.Format(
LocalizableStrings
.Constraint_Error_ArgumentHasEmptyString, args)) };
33
throw new ConfigurationException(string.Format(
LocalizableStrings
.Constraint_Error_ArgumentHasEmptyString, args));
39
throw new ConfigurationException(string.Format(
LocalizableStrings
.Constraint_Error_ArgumentHasEmptyString, args));
61
throw new ConfigurationException(string.Format(
LocalizableStrings
.Constraint_Error_InvalidJsonArray_Objects, args));
107
throw new ConfigurationException(string.Format(
LocalizableStrings
.Constraint_Error_InvalidVersion, versionString));
117
throw new ConfigurationException(
LocalizableStrings
.Constraint_Error_ArgumentsNotSpecified);
127
throw new ConfigurationException(string.Format(
LocalizableStrings
.Constraint_Error_InvalidJson, args), e);
130
return token ?? throw new ConfigurationException(string.Format(
LocalizableStrings
.Constraint_Error_InvalidJson, args));
139
?
LocalizableStrings
.Constraint_Error_InvalidJsonType_StringOrArray
140
:
LocalizableStrings
.Constraint_Error_InvalidJsonType_Array,
146
throw new ConfigurationException(string.Format(
LocalizableStrings
.Constraint_Error_ArrayHasNoObjects, args));
Constraints\HostConstraint.cs (3)
29
public override string DisplayName =>
LocalizableStrings
.HostConstraint_Name;
56
string errorMessage = string.Format(
LocalizableStrings
.HostConstraint_Message_Restricted, EnvironmentSettings.Host.HostIdentifier, EnvironmentSettings.Host.Version, supportedHosts.ToCsvString());
81
throw new ConfigurationException(string.Format(
LocalizableStrings
.HostConstraint_Error_MissingMandatoryProperty, jObj, "hostname"));
Constraints\OSConstraint.cs (3)
35
public override string DisplayName =>
LocalizableStrings
.OSConstraint_Name;
48
return TemplateConstraintResult.CreateRestricted(this, string.Format(
LocalizableStrings
.OSConstraint_Message_Restricted, RuntimeInformation.OSDescription, string.Join(", ", supportedOS)));
66
throw new ConfigurationException(string.Format(
LocalizableStrings
.OSConstraint_Error_InvalidOSName, arg, supportedValues));
Constraints\SdkVersionConstraintFactory.cs (5)
43
public override string DisplayName =>
LocalizableStrings
.SdkVersionConstraint_Name;
73
string.Format(
LocalizableStrings
.SdkConstraint_Message_Restricted, _currentSdkVersion.ToString(), supportedSdks.ToCsvString()),
98
throw new ConfigurationException(
LocalizableStrings
.SdkConstraint_Error_MissingProvider);
104
string.Format(
LocalizableStrings
.SdkConstraint_Error_MismatchedProviders, providers.Select(p => p.Id).ToCsvString()));
121
throw new ConfigurationException(string.Format(
LocalizableStrings
.SdkConstraint_Error_InvalidVersion, version));
Constraints\WorkloadConstraintFactory.cs (5)
45
public override string DisplayName =>
LocalizableStrings
.WorkloadConstraint_Name;
71
LocalizableStrings
.WorkloadConstraint_Message_Restricted,
92
throw new ConfigurationException(
LocalizableStrings
.WorkloadConstraint_Error_MissingProvider);
98
string.Format(
LocalizableStrings
.WorkloadConstraint_Error_MismatchedProviders, providers.Select(p => p.Id).ToCsvString()));
117
LocalizableStrings
.WorkloadConstraint_Warning_DuplicateWorkloads,
Installers\Folder\FolderInstaller.cs (1)
67
string.Format(
LocalizableStrings
.FolderInstaller_InstallResult_Error_FolderDoesNotExist, installRequest.PackageIdentifier),
Installers\NuGet\NugetApiPackageManager.cs (15)
94
string.Format(
LocalizableStrings
.NuGetApiPackageManager_DownloadError_VulnerablePackage, source),
108
_nugetLogger.LogError(string.Format(
LocalizableStrings
.NuGetApiPackageManager_Error_FailedToLoadSource, source.Source));
116
_nugetLogger.LogError(string.Format(
LocalizableStrings
.NuGetApiPackageManager_Error_FileAlreadyExists, filePath));
144
LocalizableStrings
.NuGetApiPackageManager_Warning_FailedToDownload,
155
LocalizableStrings
.NuGetApiPackageManager_Warning_FailedToDelete,
166
LocalizableStrings
.NuGetApiPackageManager_Warning_FailedToDownload,
178
LocalizableStrings
.NuGetApiPackageManager_Warning_FailedToDelete,
241
_nugetLogger.LogWarning(string.Format(
LocalizableStrings
.NuGetApiPackageManager_Warning_InsecureFeed, packagesString));
302
LocalizableStrings
.NuGetApiPackageManager_Warning_PackageNotFound,
358
LocalizableStrings
.NuGetApiPackageManager_Warning_PackageNotFound,
417
_nugetLogger.LogDebug(string.Format(
LocalizableStrings
.NuGetApiPackageManager_Error_FailedToReadPackage, source.Source));
455
_nugetLogger.LogError(string.Format(
LocalizableStrings
.NuGetApiPackageManager_Error_FailedToLoadSources, currentDirectory));
464
_nugetLogger.LogError(
LocalizableStrings
.NuGetApiPackageManager_Error_NoSources);
485
_nugetLogger.LogWarning(string.Format(
LocalizableStrings
.NuGetApiPackageManager_Warning_FailedToLoadSource, source));
494
_nugetLogger.LogError(
LocalizableStrings
.NuGetApiPackageManager_Error_NoSources);
Installers\NuGet\NuGetInstaller.cs (23)
129
string.Format(
LocalizableStrings
.NuGetApiPackageManager_UpdateCheckError_VulnerablePackage, nugetPackage.Identifier),
145
string.Format(
LocalizableStrings
.NuGetInstaller_Error_FailedToReadPackage, e.PackageIdentifier, string.Join(", ", e.SourcesList)),
151
?
LocalizableStrings
.NuGetInstaller_InstallResult_Error_InvalidSources_None
152
: string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_InvalidSources, string.Join(", ", e.SourcesList));
165
LocalizableStrings
.NuGetInstaller_InstallResult_Error_OperationCancelled,
173
string.Format(
LocalizableStrings
.NuGetInstaller_UpdateCheck_Error_VulnerablePackage, nugetPackage.Identifier),
182
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_UpdateCheckGeneric, package.DisplayName, e.Message),
191
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_PackageNotSupported, package.DisplayName, Factory.Name),
207
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_PackageNotSupported, installRequest.DisplayName, Factory.Name),
265
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_DownloadFailed, installRequest.DisplayName, packageLocation),
273
string.Format(
LocalizableStrings
.NuGetInstaller_Error_FailedToReadPackage, e.PackageIdentifier, string.Join(", ", e.SourcesList)),
279
?
LocalizableStrings
.NuGetInstaller_InstallResult_Error_InvalidSources_None
280
: string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_InvalidSources, string.Join(", ", e.SourcesList));
293
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_InvalidPackage, e.PackageLocation),
301
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_VulnerablePackage, e.PackageIdentifier),
309
LocalizableStrings
.NuGetInstaller_InstallResult_Error_OperationCancelled,
318
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_InstallGeneric, installRequest.DisplayName, e.Message),
344
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_PackageNotSupported, templatePackage.DisplayName, Factory.Name)));
357
string.Format(
LocalizableStrings
.NuGetInstaller_InstallResult_Error_UninstallGeneric, templatePackage.DisplayName, e.Message)));
407
_logger.LogError(string.Format(
LocalizableStrings
.NuGetInstaller_Error_FailedToReadPackage, installRequest.PackageIdentifier));
414
_logger.LogError(string.Format(
LocalizableStrings
.NuGetInstaller_Error_CopyFailed, installRequest.PackageIdentifier, targetPackageLocation));
415
_logger.LogError(string.Format(
LocalizableStrings
.NuGetInstaller_Error_FileAlreadyExists, targetPackageLocation));
425
_logger.LogError(string.Format(
LocalizableStrings
.NuGetInstaller_Error_CopyFailed, installRequest.PackageIdentifier, targetPackageLocation), null, 0);
Settings\Scanner.cs (1)
129
throw new Exception(string.Format(
LocalizableStrings
.Scanner_Error_TemplatePackageLocationIsNotSupported, sourceLocation));
Settings\TemplateCache.cs (3)
186
LocalizableStrings
.TemplatePackageManager_Warning_DetectedTemplatesIdentityConflict_Subentry,
193
LocalizableStrings
.TemplatePackageManager_Warning_DetectedTemplatesIdentityConflict,
238
LocalizableStrings
.TemplateInfo_Warning_FailedToReadHostData,
Settings\TemplatePackageManager.cs (4)
110
_logger.LogError(
LocalizableStrings
.TemplatePackageManager_Error_FailedToGetTemplatePackages, source.Key.Factory.DisplayName, ex.Message);
244
throw new InvalidOperationException(string.Format(
LocalizableStrings
.TemplatePackageManager_Error_FailedToFindPackage, packageIdentifier));
362
_logger.LogWarning(
LocalizableStrings
.TemplatePackageManager_Error_FailedToScan, allTemplatePackages[index].MountPointUri, ex.Message);
380
_logger.LogWarning(
LocalizableStrings
.TemplatePackageManager_Error_FailedToStoreCache, ex.Message);
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Edge\Release\net11.0\Microsoft.TemplateEngine.Edge.LocalizableStrings.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
LocalizableStrings
)));
Template\InputDataSetExtensions.cs (2)
82
string.Format(
LocalizableStrings
.EvaluatedInputDataSet_Error_MismatchedConditions, string.Join(", ", offendingParameters)));
96
throw new ArgumentException(string.Format(
LocalizableStrings
.EvaluatedInputParameterData_Error_ConditionsInvalid, inputParameterData.ParameterDefinition.Name));
Template\ParameterSetBuilder.cs (4)
261
logger.LogWarning(
LocalizableStrings
.ConditionEvaluation_Warning_CyclicDependency, cycle.Select(p => p.ParameterDefinition.Name).ToCsvString());
285
LocalizableStrings
.ConditionEvaluation_Error_CyclicDependency,
291
throw new Exception(
LocalizableStrings
.ConditionEvaluation_Error_TopologicalSort);
308
LocalizableStrings
.ConditionEvaluation_Error_MismatchedCondition,
Template\TemplateCreator.cs (5)
96
return new TemplateCreationResult(CreationResultStatus.NotFound, templateInfo.Name,
LocalizableStrings
.TemplateCreator_TemplateCreationResult_Error_CouldNotLoadTemplate);
104
CreationResultStatus.TemplateIssueDetected, template.Name,
LocalizableStrings
.TemplateCreator_TemplateCreationResult_Error_InvalidTemplate);
117
CreationResultStatus.TemplateIssueDetected, template.Name,
LocalizableStrings
.TemplateCreator_TemplateCreationResult_Error_NoDefaultName);
185
LocalizableStrings
.TemplateCreator_TemplateCreationResult_Error_DestructiveChanges,
224
localizedErrorMessage: string.Format(
LocalizableStrings
.TemplateCreator_TemplateCreationResult_Error_CreationFailed, message),
TemplateConstraintManager.cs (7)
71
_logger.LogWarning(
LocalizableStrings
.TemplateConstraintManager_Error_FailedToInitialize, constraint.Type, constraint.Task.Exception.Message);
97
return TemplateConstraintResult.CreateInitializationFailure(type, string.Format(
LocalizableStrings
.TemplateConstraintManager_Error_UnknownType, type));
124
return TemplateConstraintResult.CreateInitializationFailure(type, string.Format(
LocalizableStrings
.TemplateConstraintManager_Error_FailedToInitialize, type, exception?.Message));
134
return TemplateConstraintResult.CreateEvaluationFailure(task.Result, string.Format(
LocalizableStrings
.TemplateConstraintManager_Error_FailedToEvaluate, type, args, e.Message));
191
constraintResults.Add(TemplateConstraintResult.CreateInitializationFailure(constraint.Type, string.Format(
LocalizableStrings
.TemplateConstraintManager_Error_UnknownType, constraint.Type)));
199
constraintResults.Add(TemplateConstraintResult.CreateInitializationFailure(constraint.Type, string.Format(
LocalizableStrings
.TemplateConstraintManager_Error_FailedToInitialize, constraint.Type, exception?.Message)));
210
constraintResults.Add(TemplateConstraintResult.CreateEvaluationFailure(_templateConstrains[constraint.Type].Result, string.Format(
LocalizableStrings
.TemplateConstraintManager_Error_FailedToEvaluate, constraint.Type, constraint.Args, e.Message)));
ValidationUtils.cs (10)
29
logger.LogError(
LocalizableStrings
.Validation_InvalidTemplate, templateDisplayName);
33
logger.LogWarning(
LocalizableStrings
.Validation_InvalidTemplateLoc, invalidLoc.Locale, templateDisplayName);
56
logger.LogError(
LocalizableStrings
.Validation_InvalidTemplate, templateDisplayName);
60
logger.LogWarning(
LocalizableStrings
.Validation_InvalidTemplateLoc, template.Localization!.Locale, templateDisplayName);
69
string.Format(
LocalizableStrings
.Validation_Error_Header, templateDisplayName),
74
string.Format(
LocalizableStrings
.Validation_Warning_Header, templateDisplayName),
79
string.Format(
LocalizableStrings
.Validation_Info_Header, templateDisplayName),
88
string.Format(
LocalizableStrings
.Validation_LocError_Header, templateDisplayName, localizationInfo.Locale),
93
string.Format(
LocalizableStrings
.Validation_LocWarning_Header, templateDisplayName, localizationInfo.Locale),
98
string.Format(
LocalizableStrings
.Validation_LocInfo_Header, templateDisplayName, localizationInfo.Locale),