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