// namespace Microsoft.Extensions.ApiDescription.Tasks { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.Extensions.ApiDescription.Tasks.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Multiple items have OutputPath='{0}'. All ServiceFileReference, ServiceProjectReference and ServiceUriReference items must have unique OutputPath metadata. /// internal static string DuplicateFileOutputPaths { get => GetString("DuplicateFileOutputPaths"); } /// /// Multiple items have OutputPath='{0}'. All ServiceFileReference, ServiceProjectReference and ServiceUriReference items must have unique OutputPath metadata. /// internal static string FormatDuplicateFileOutputPaths(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateFileOutputPaths"), p0); /// /// Mutliple ServiceProjectReference items have DocumentPath='{0}'. ServiceProjectReference items must have unique DocumentPath metadata. /// internal static string DuplicateProjectDocumentPaths { get => GetString("DuplicateProjectDocumentPaths"); } /// /// Mutliple ServiceProjectReference items have DocumentPath='{0}'. ServiceProjectReference items must have unique DocumentPath metadata. /// internal static string FormatDuplicateProjectDocumentPaths(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateProjectDocumentPaths"), p0); /// /// Mutliple ServiceUriReference items have DocumentPath='{0}'. ServiceUriReference items must have unique DocumentPath metadata. /// internal static string DuplicateUriDocumentPaths { get => GetString("DuplicateUriDocumentPaths"); } /// /// Mutliple ServiceUriReference items have DocumentPath='{0}'. ServiceUriReference items must have unique DocumentPath metadata. /// internal static string FormatDuplicateUriDocumentPaths(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateUriDocumentPaths"), p0); /// /// Invalid {0} metadata value for {1} item '{2}'. {0} metadata must not be set to the empty string. /// internal static string InvalidEmptyMetadataValue { get => GetString("InvalidEmptyMetadataValue"); } /// /// Invalid {0} metadata value for {1} item '{2}'. {0} metadata must not be set to the empty string. /// internal static string FormatInvalidEmptyMetadataValue(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("InvalidEmptyMetadataValue"), p0, p1, p2); 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; } } }