// namespace Microsoft.VisualStudio.SecretManager { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.VisualStudio.SecretManager.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// A secret with this name already exists. /// internal static string Error_SecretAlreadyExists { get => GetString("Error_SecretAlreadyExists"); } /// /// Value cannot be null or an empty string. /// internal static string Common_StringNullOrEmpty { get => GetString("Common_StringNullOrEmpty"); } /// /// Value cannot be null or an empty string. /// internal static string FormatCommon_StringNullOrEmpty() => GetString("Common_StringNullOrEmpty"); /// /// Invalid character '{0}' found in the user secrets ID at index '{1}'. /// internal static string Error_Invalid_Character_In_UserSecrets_Id { get => GetString("Error_Invalid_Character_In_UserSecrets_Id"); } /// /// Invalid character '{0}' found in the user secrets ID at index '{1}'. /// internal static string FormatError_Invalid_Character_In_UserSecrets_Id(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("Error_Invalid_Character_In_UserSecrets_Id"), p0, p1); /// /// Could not find 'UserSecretsIdAttribute' on assembly '{0}'. /// Check that the project for '{0}' has set the 'UserSecretsId' build property. /// If the 'UserSecretsId' property is already set then add a reference to the Microsoft.Extensions.Configuration.UserSecrets package. /// internal static string Error_Missing_UserSecretsIdAttribute { get => GetString("Error_Missing_UserSecretsIdAttribute"); } /// /// Could not find 'UserSecretsIdAttribute' on assembly '{0}'. /// Check that the project for '{0}' has set the 'UserSecretsId' build property. /// If the 'UserSecretsId' property is already set then add a reference to the Microsoft.Extensions.Configuration.UserSecrets package. /// internal static string FormatError_Missing_UserSecretsIdAttribute(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("Error_Missing_UserSecretsIdAttribute"), p0); /// /// File path must be a non-empty string. /// internal static string Error_InvalidFilePath { get => GetString("Error_InvalidFilePath"); } /// /// File path must be a non-empty string. /// internal static string FormatError_InvalidFilePath() => GetString("Error_InvalidFilePath"); /// /// Could not parse the JSON file. Error on line number '{0}': '{1}'. /// internal static string Error_JSONParseError { get => GetString("Error_JSONParseError"); } /// /// Could not parse the JSON file. Error on line number '{0}': '{1}'. /// internal static string FormatError_JSONParseError(object p0, object p1) => string.Format(CultureInfo.CurrentCulture, GetString("Error_JSONParseError"), p0, p1); /// /// A duplicate key '{0}' was found. /// internal static string Error_KeyIsDuplicated { get => GetString("Error_KeyIsDuplicated"); } /// /// A duplicate key '{0}' was found. /// internal static string FormatError_KeyIsDuplicated(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("Error_KeyIsDuplicated"), p0); /// /// Unsupported JSON token '{0}' was found. Path '{1}', line {2} position {3}. /// internal static string Error_UnsupportedJSONToken { get => GetString("Error_UnsupportedJSONToken"); } /// /// Unsupported JSON token '{0}' was found. Path '{1}', line {2} position {3}. /// internal static string FormatError_UnsupportedJSONToken(object p0, object p1, object p2, object p3) => string.Format(CultureInfo.CurrentCulture, GetString("Error_UnsupportedJSONToken"), p0, p1, p2, p3); private static string GetString(string name, params string[] formatterNames) { var value = _resourceManager.GetString(name); System.Diagnostics.Debug.Assert(value != null); if (formatterNames != null) { for (var i = 0; i < formatterNames.Length; i++) { value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}"); } } return value; } } }