From f7ba8f1002f7967b0eeb5f0da6bb35961cbbce56 Mon Sep 17 00:00:00 2001 From: John Luo Date: Wed, 17 Jul 2019 18:31:50 -0700 Subject: [PATCH] Use Arcade for resx generation (#12179) --- Directory.Build.targets | 5 + .../src/Properties/Resources.Designer.cs | 254 --- ...oft.AspNetCore.Components.Analyzers.csproj | 13 - .../Analyzers/src/Resources.Designer.cs | 207 -- ...rosoft.VisualStudio.BlazorExtension.csproj | 3 + .../BasicTestApp/BasicTestApp.csproj | 14 +- .../BasicTestApp/Resources.Designer.cs | 72 - .../src/Properties/Resources.Designer.cs | 86 - .../src/Properties/Resources.Designer.cs | 86 - .../src/Properties/Resources.Designer.cs | 394 ---- .../src/Properties/Resources.Designer.cs | 72 - .../src/Properties/Resources.Designer.cs | 338 ---- .../src/Properties/Resources.Designer.cs | 86 - .../src/Properties/Resources.Designer.cs | 240 --- .../src/Properties/Resources.Designer.cs | 562 ------ .../WebUtilities/src/Resources.Designer.cs | 89 - .../Core/src/Properties/Resources.Designer.cs | 72 - .../src/Properties/Resources.Designer.cs | 100 - .../src/Properties/Resources.Designer.cs | 730 ------- .../CORS/src/Properties/Resources.Designer.cs | 58 - .../src/Properties/Strings.Designer.cs | 408 ---- .../DatabaseErrorPageMiddlewareTest.cs | 18 +- .../FunctionalTests/Helpers/StringHelpers.cs | 12 +- .../MigrationsEndPointMiddlewareTest.cs | 2 +- .../ExceptionHandlerMiddleware.cs | 2 +- .../src/Properties/Resources.Designer.cs | 758 ------- ...AspNetCore.Diagnostics.HealthChecks.csproj | 7 - .../src/Properties/Resources.Designer.cs | 44 - .../sample/LocalizationSample.csproj | 3 + .../src/Properties/Resources.Designer.cs | 44 - .../testassets/Directory.Build.props | 8 + .../src/Properties/Resources.Designer.cs | 238 --- .../src/Properties/Resources.Designer.cs | 114 -- .../StaticFiles/src/Resources.Designer.cs | 142 -- .../src/Properties/Resources.Designer.cs | 58 - .../src/Properties/Resources.Designer.cs | 352 ---- .../src/Properties/Resources.Designer.cs | 310 --- .../DefaultModelBindingMessageProvider.cs | 8 +- .../src/Properties/Resources.Designer.cs | 1780 ----------------- .../src/Properties/Resources.Designer.cs | 44 - .../src/Properties/Resources.Designer.cs | 72 - .../test/Properties/Resources.Designer.cs | 86 - .../src/Properties/Resources.Designer.cs | 86 - .../src/Properties/Resources.Designer.cs | 142 -- .../src/Properties/Resources.Designer.cs | 100 - .../src/Properties/Resources.Designer.cs | 412 ---- .../src/Properties/Resources.Designer.cs | 198 -- .../src/Properties/Resources.Designer.cs | 240 --- .../src/Properties/Resources.Designer.cs | 72 - .../src/Properties/Resources.Designer.cs | 856 -------- .../test/Properties/Resources.Designer.cs | 86 - .../src/Properties/Resources.Designer.cs | 226 --- .../RazorPagesWebSite.csproj | 3 + .../src/Properties/Resources.Designer.cs | 44 - .../Core/src/Properties/Resources.Designer.cs | 100 - .../Facebook/src/Resources.Designer.cs | 44 - .../Google/src/Resources.Designer.cs | 58 - .../src/Properties/Resources.Designer.cs | 58 - .../src/Resources.Designer.cs | 72 - .../src/Properties/Resources.Designer.cs | 58 - .../src/Properties/Resources.Designer.cs | 114 -- .../src/Properties/Resources.Designer.cs | 58 - .../src/Properties/Resources.Designer.cs | 114 -- .../Core/src/Properties/Resources.Designer.cs | 72 - .../src/Properties/Resources.Designer.cs | 44 - .../src/Properties/Resources.Designer.cs | 206 -- .../src/Properties/CoreStrings.Designer.cs | 254 --- src/Servers/Kestrel/Directory.Build.props | 2 - .../src/Properties/Resources.Designer.cs | 270 --- .../src/Properties/Resources.Designer.cs | 94 - 70 files changed, 50 insertions(+), 12024 deletions(-) delete mode 100644 src/Antiforgery/src/Properties/Resources.Designer.cs delete mode 100644 src/Components/Analyzers/src/Resources.Designer.cs delete mode 100644 src/Components/test/testassets/BasicTestApp/Resources.Designer.cs delete mode 100644 src/DataProtection/Abstractions/src/Properties/Resources.Designer.cs delete mode 100644 src/DataProtection/Cryptography.Internal/src/Properties/Resources.Designer.cs delete mode 100644 src/DataProtection/DataProtection/src/Properties/Resources.Designer.cs delete mode 100644 src/DataProtection/Extensions/src/Properties/Resources.Designer.cs delete mode 100644 src/Features/JsonPatch/src/Properties/Resources.Designer.cs delete mode 100644 src/Hosting/Hosting/src/Properties/Resources.Designer.cs delete mode 100644 src/Http/Http.Abstractions/src/Properties/Resources.Designer.cs delete mode 100644 src/Http/Routing/src/Properties/Resources.Designer.cs delete mode 100644 src/Http/WebUtilities/src/Resources.Designer.cs delete mode 100644 src/Identity/Core/src/Properties/Resources.Designer.cs delete mode 100644 src/Identity/EntityFrameworkCore/src/Properties/Resources.Designer.cs delete mode 100644 src/Identity/Extensions.Core/src/Properties/Resources.Designer.cs delete mode 100644 src/Middleware/CORS/src/Properties/Resources.Designer.cs delete mode 100644 src/Middleware/Diagnostics.EntityFrameworkCore/src/Properties/Strings.Designer.cs delete mode 100644 src/Middleware/Diagnostics/src/Properties/Resources.Designer.cs delete mode 100644 src/Middleware/HealthChecks/src/Properties/Resources.Designer.cs delete mode 100644 src/Middleware/Localization/src/Properties/Resources.Designer.cs create mode 100644 src/Middleware/Localization/testassets/Directory.Build.props delete mode 100644 src/Middleware/Rewrite/src/Properties/Resources.Designer.cs delete mode 100644 src/Middleware/Session/src/Properties/Resources.Designer.cs delete mode 100644 src/Middleware/StaticFiles/src/Resources.Designer.cs delete mode 100644 src/Mvc/Extensions.ApiDescription.Client/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/GetDocumentInsider/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.Abstractions/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.Core/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.Cors/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.DataAnnotations/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.DataAnnotations/test/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.Formatters.Xml/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.NewtonsoftJson/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.Razor.RuntimeCompilation/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.Razor/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.RazorPages/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.TagHelpers/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.Testing/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.ViewFeatures/src/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/Mvc.ViewFeatures/test/Properties/Resources.Designer.cs delete mode 100644 src/Mvc/dotnet-getdocument/src/Properties/Resources.Designer.cs delete mode 100644 src/Razor/Razor.Runtime/src/Properties/Resources.Designer.cs delete mode 100644 src/Security/Authentication/Core/src/Properties/Resources.Designer.cs delete mode 100644 src/Security/Authentication/Facebook/src/Resources.Designer.cs delete mode 100644 src/Security/Authentication/Google/src/Resources.Designer.cs delete mode 100644 src/Security/Authentication/JwtBearer/src/Properties/Resources.Designer.cs delete mode 100644 src/Security/Authentication/MicrosoftAccount/src/Resources.Designer.cs delete mode 100644 src/Security/Authentication/OAuth/src/Properties/Resources.Designer.cs delete mode 100644 src/Security/Authentication/OpenIdConnect/src/Properties/Resources.Designer.cs delete mode 100644 src/Security/Authentication/Twitter/src/Properties/Resources.Designer.cs delete mode 100644 src/Security/Authentication/WsFederation/src/Properties/Resources.Designer.cs delete mode 100644 src/Security/Authorization/Core/src/Properties/Resources.Designer.cs delete mode 100644 src/Security/Authorization/Policy/src/Properties/Resources.Designer.cs delete mode 100644 src/Servers/HttpSys/src/Properties/Resources.Designer.cs delete mode 100644 src/Servers/IIS/IIS/src/Properties/CoreStrings.Designer.cs delete mode 100644 src/Tools/dotnet-user-secrets/src/Properties/Resources.Designer.cs delete mode 100644 src/Tools/dotnet-watch/src/Properties/Resources.Designer.cs diff --git a/Directory.Build.targets b/Directory.Build.targets index 0da788da27..5006951f11 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -19,6 +19,11 @@ true + + true + true + + diff --git a/src/Antiforgery/src/Properties/Resources.Designer.cs b/src/Antiforgery/src/Properties/Resources.Designer.cs deleted file mode 100644 index 83811ea2dc..0000000000 --- a/src/Antiforgery/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -namespace Microsoft.AspNetCore.Antiforgery -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Antiforgery.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The provided identity of type '{0}' is marked {1} = {2} but does not have a value for {3}. By default, the antiforgery system requires that all authenticated identities have a unique {3}. If it is not possible to provide a unique {3} for this identity, consider extending {4} by overriding the {5} or a custom type that can provide some form of unique identifier for the current user. - /// - internal static string AntiforgeryTokenValidator_AuthenticatedUserWithoutUsername - { - get => GetString("AntiforgeryTokenValidator_AuthenticatedUserWithoutUsername"); - } - - /// - /// The provided identity of type '{0}' is marked {1} = {2} but does not have a value for {3}. By default, the antiforgery system requires that all authenticated identities have a unique {3}. If it is not possible to provide a unique {3} for this identity, consider extending {4} by overriding the {5} or a custom type that can provide some form of unique identifier for the current user. - /// - internal static string FormatAntiforgeryTokenValidator_AuthenticatedUserWithoutUsername(object p0, object p1, object p2, object p3, object p4, object p5) - => string.Format(CultureInfo.CurrentCulture, GetString("AntiforgeryTokenValidator_AuthenticatedUserWithoutUsername"), p0, p1, p2, p3, p4, p5); - - /// - /// The provided antiforgery token failed a custom data check. - /// - internal static string AntiforgeryToken_AdditionalDataCheckFailed - { - get => GetString("AntiforgeryToken_AdditionalDataCheckFailed"); - } - - /// - /// The provided antiforgery token failed a custom data check. - /// - internal static string FormatAntiforgeryToken_AdditionalDataCheckFailed() - => GetString("AntiforgeryToken_AdditionalDataCheckFailed"); - - /// - /// The provided antiforgery token was meant for a different claims-based user than the current user. - /// - internal static string AntiforgeryToken_ClaimUidMismatch - { - get => GetString("AntiforgeryToken_ClaimUidMismatch"); - } - - /// - /// The provided antiforgery token was meant for a different claims-based user than the current user. - /// - internal static string FormatAntiforgeryToken_ClaimUidMismatch() - => GetString("AntiforgeryToken_ClaimUidMismatch"); - - /// - /// The antiforgery token could not be decrypted. - /// - internal static string AntiforgeryToken_DeserializationFailed - { - get => GetString("AntiforgeryToken_DeserializationFailed"); - } - - /// - /// The antiforgery token could not be decrypted. - /// - internal static string FormatAntiforgeryToken_DeserializationFailed() - => GetString("AntiforgeryToken_DeserializationFailed"); - - /// - /// The antiforgery cookie token and request token do not match. - /// - internal static string AntiforgeryToken_SecurityTokenMismatch - { - get => GetString("AntiforgeryToken_SecurityTokenMismatch"); - } - - /// - /// The antiforgery cookie token and request token do not match. - /// - internal static string FormatAntiforgeryToken_SecurityTokenMismatch() - => GetString("AntiforgeryToken_SecurityTokenMismatch"); - - /// - /// Validation of the provided antiforgery token failed. The cookie token and the request token were swapped. - /// - internal static string AntiforgeryToken_TokensSwapped - { - get => GetString("AntiforgeryToken_TokensSwapped"); - } - - /// - /// Validation of the provided antiforgery token failed. The cookie token and the request token were swapped. - /// - internal static string FormatAntiforgeryToken_TokensSwapped() - => GetString("AntiforgeryToken_TokensSwapped"); - - /// - /// The provided antiforgery token was meant for user "{0}", but the current user is "{1}". - /// - internal static string AntiforgeryToken_UsernameMismatch - { - get => GetString("AntiforgeryToken_UsernameMismatch"); - } - - /// - /// The provided antiforgery token was meant for user "{0}", but the current user is "{1}". - /// - internal static string FormatAntiforgeryToken_UsernameMismatch(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("AntiforgeryToken_UsernameMismatch"), p0, p1); - - /// - /// The antiforgery cookie token is invalid. - /// - internal static string Antiforgery_CookieToken_IsInvalid - { - get => GetString("Antiforgery_CookieToken_IsInvalid"); - } - - /// - /// The antiforgery cookie token is invalid. - /// - internal static string FormatAntiforgery_CookieToken_IsInvalid() - => GetString("Antiforgery_CookieToken_IsInvalid"); - - /// - /// The required antiforgery cookie "{0}" is not present. - /// - internal static string Antiforgery_CookieToken_MustBeProvided - { - get => GetString("Antiforgery_CookieToken_MustBeProvided"); - } - - /// - /// The required antiforgery cookie "{0}" is not present. - /// - internal static string FormatAntiforgery_CookieToken_MustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_CookieToken_MustBeProvided"), p0); - - /// - /// The required antiforgery cookie token must be provided. - /// - internal static string Antiforgery_CookieToken_MustBeProvided_Generic - { - get => GetString("Antiforgery_CookieToken_MustBeProvided_Generic"); - } - - /// - /// The required antiforgery cookie token must be provided. - /// - internal static string FormatAntiforgery_CookieToken_MustBeProvided_Generic() - => GetString("Antiforgery_CookieToken_MustBeProvided_Generic"); - - /// - /// The required antiforgery form field "{0}" is not present. - /// - internal static string Antiforgery_FormToken_MustBeProvided - { - get => GetString("Antiforgery_FormToken_MustBeProvided"); - } - - /// - /// The required antiforgery form field "{0}" is not present. - /// - internal static string FormatAntiforgery_FormToken_MustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_FormToken_MustBeProvided"), p0); - - /// - /// The required antiforgery header value "{0}" is not present. - /// - internal static string Antiforgery_HeaderToken_MustBeProvided - { - get => GetString("Antiforgery_HeaderToken_MustBeProvided"); - } - - /// - /// The required antiforgery header value "{0}" is not present. - /// - internal static string FormatAntiforgery_HeaderToken_MustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_HeaderToken_MustBeProvided"), p0); - - /// - /// The required antiforgery request token was not provided in either form field "{0}" or header value "{1}". - /// - internal static string Antiforgery_RequestToken_MustBeProvided - { - get => GetString("Antiforgery_RequestToken_MustBeProvided"); - } - - /// - /// The required antiforgery request token was not provided in either form field "{0}" or header value "{1}". - /// - internal static string FormatAntiforgery_RequestToken_MustBeProvided(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_RequestToken_MustBeProvided"), p0, p1); - - /// - /// The required antiforgery request token must be provided. - /// - internal static string Antiforgery_RequestToken_MustBeProvided_Generic - { - get => GetString("Antiforgery_RequestToken_MustBeProvided_Generic"); - } - - /// - /// The required antiforgery request token must be provided. - /// - internal static string FormatAntiforgery_RequestToken_MustBeProvided_Generic() - => GetString("Antiforgery_RequestToken_MustBeProvided_Generic"); - - /// - /// The antiforgery system has the configuration value {optionName} = {value}, but the current request is not an SSL request. - /// - internal static string Antiforgery_RequiresSSL - { - get => GetString("Antiforgery_RequiresSSL"); - } - - /// - /// The antiforgery system has the configuration value {optionName} = {value}, but the current request is not an SSL request. - /// - internal static string FormatAntiforgery_RequiresSSL(object optionName, object value) - => string.Format(CultureInfo.CurrentCulture, GetString("Antiforgery_RequiresSSL", "optionName", "value"), optionName, value); - - /// - /// Value cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - 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; - } - } -} diff --git a/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj b/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj index c84bc990f2..0880000c9d 100644 --- a/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj +++ b/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj @@ -20,17 +20,4 @@ - - - True - True - Resources.resx - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - diff --git a/src/Components/Analyzers/src/Resources.Designer.cs b/src/Components/Analyzers/src/Resources.Designer.cs deleted file mode 100644 index a6e48e8c63..0000000000 --- a/src/Components/Analyzers/src/Resources.Designer.cs +++ /dev/null @@ -1,207 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNetCore.Components.Analyzers { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNetCore.Components.Analyzers.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Component parameters with CaptureUnmatchedValues must be a correct type.. - /// - internal static string ComponentParameterCaptureUnmatchedValuesHasWrongType_Description { - get { - return ResourceManager.GetString("ComponentParameterCaptureUnmatchedValuesHasWrongType_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameter '{0}' defines CaptureUnmatchedValues but has an unsupported type '{1}'. Use a type assignable from '{2}'.. - /// - internal static string ComponentParameterCaptureUnmatchedValuesHasWrongType_Format { - get { - return ResourceManager.GetString("ComponentParameterCaptureUnmatchedValuesHasWrongType_Format", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameter with CaptureUnmatchedValues has the wrong type. - /// - internal static string ComponentParameterCaptureUnmatchedValuesHasWrongType_Title { - get { - return ResourceManager.GetString("ComponentParameterCaptureUnmatchedValuesHasWrongType_Title", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Components may only define a single parameter with CaptureUnmatchedValues.. - /// - internal static string ComponentParameterCaptureUnmatchedValuesMustBeUnique_Description { - get { - return ResourceManager.GetString("ComponentParameterCaptureUnmatchedValuesMustBeUnique_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component type '{0}' defines properties multiple parameters with CaptureUnmatchedValues. Properties: {1}{2}. - /// - internal static string ComponentParameterCaptureUnmatchedValuesMustBeUnique_Format { - get { - return ResourceManager.GetString("ComponentParameterCaptureUnmatchedValuesMustBeUnique_Format", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component has multiple CaptureUnmatchedValues parameters. - /// - internal static string ComponentParameterCaptureUnmatchedValuesMustBeUnique_Title { - get { - return ResourceManager.GetString("ComponentParameterCaptureUnmatchedValuesMustBeUnique_Title", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameters should have public setters.. - /// - internal static string ComponentParameterSettersShouldBePublic_Description { - get { - return ResourceManager.GetString("ComponentParameterSettersShouldBePublic_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameter '{0}' should have a public setter.. - /// - internal static string ComponentParameterSettersShouldBePublic_Format { - get { - return ResourceManager.GetString("ComponentParameterSettersShouldBePublic_Format", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameter should have public setters.. - /// - internal static string ComponentParameterSettersShouldBePublic_Title { - get { - return ResourceManager.GetString("ComponentParameterSettersShouldBePublic_Title", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameter '{0}' should be public.. - /// - internal static string ComponentParameterShouldBePublic_Format { - get { - return ResourceManager.GetString("ComponentParameterShouldBePublic_Format", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameter should be public.. - /// - internal static string ComponentParameterShouldBePublic_Title { - get { - return ResourceManager.GetString("ComponentParameterShouldBePublic_Title", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameters should not be set outside of their declared component. Doing so may result in unexpected behavior at runtime.. - /// - internal static string ComponentParameterShouldNotBeSetOutsideOfTheirDeclaredComponent_Description { - get { - return ResourceManager.GetString("ComponentParameterShouldNotBeSetOutsideOfTheirDeclaredComponent_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameter '{0}' should not be set outside of its component.. - /// - internal static string ComponentParameterShouldNotBeSetOutsideOfTheirDeclaredComponent_Format { - get { - return ResourceManager.GetString("ComponentParameterShouldNotBeSetOutsideOfTheirDeclaredComponent_Format", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameter should not be set outside of its component.. - /// - internal static string ComponentParameterShouldNotBeSetOutsideOfTheirDeclaredComponent_Title { - get { - return ResourceManager.GetString("ComponentParameterShouldNotBeSetOutsideOfTheirDeclaredComponent_Title", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Component parameters should be public.. - /// - internal static string ComponentParametersShouldBePublic_Description { - get { - return ResourceManager.GetString("ComponentParametersShouldBePublic_Description", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Make component parameters public.. - /// - internal static string ComponentParametersShouldBePublic_FixTitle { - get { - return ResourceManager.GetString("ComponentParametersShouldBePublic_FixTitle", resourceCulture); - } - } - } -} diff --git a/src/Components/Blazor/BlazorExtension/src/Microsoft.VisualStudio.BlazorExtension.csproj b/src/Components/Blazor/BlazorExtension/src/Microsoft.VisualStudio.BlazorExtension.csproj index b803dd969f..10f7b7f541 100644 --- a/src/Components/Blazor/BlazorExtension/src/Microsoft.VisualStudio.BlazorExtension.csproj +++ b/src/Components/Blazor/BlazorExtension/src/Microsoft.VisualStudio.BlazorExtension.csproj @@ -26,6 +26,9 @@ true false true + + + false --pathbase /subdir + + + false @@ -20,16 +23,7 @@ - - True - True - Resources.resx - - - - ResXFileCodeGenerator - Resources.Designer.cs - + diff --git a/src/Components/test/testassets/BasicTestApp/Resources.Designer.cs b/src/Components/test/testassets/BasicTestApp/Resources.Designer.cs deleted file mode 100644 index e747f3beff..0000000000 --- a/src/Components/test/testassets/BasicTestApp/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace BasicTestApp { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BasicTestApp.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Hello!. - /// - internal static string Message { - get { - return ResourceManager.GetString("Message", resourceCulture); - } - } - } -} diff --git a/src/DataProtection/Abstractions/src/Properties/Resources.Designer.cs b/src/DataProtection/Abstractions/src/Properties/Resources.Designer.cs deleted file mode 100644 index 7f8422cf6b..0000000000 --- a/src/DataProtection/Abstractions/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -namespace Microsoft.AspNetCore.DataProtection.Abstractions -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.DataProtection.Abstractions.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The payload was invalid. - /// - internal static string CryptCommon_PayloadInvalid - { - get => GetString("CryptCommon_PayloadInvalid"); - } - - /// - /// The payload was invalid. - /// - internal static string FormatCryptCommon_PayloadInvalid() - => GetString("CryptCommon_PayloadInvalid"); - - /// - /// The purposes collection cannot be null or empty and cannot contain null elements. - /// - internal static string DataProtectionExtensions_NullPurposesCollection - { - get => GetString("DataProtectionExtensions_NullPurposesCollection"); - } - - /// - /// The purposes collection cannot be null or empty and cannot contain null elements. - /// - internal static string FormatDataProtectionExtensions_NullPurposesCollection() - => GetString("DataProtectionExtensions_NullPurposesCollection"); - - /// - /// An error occurred during a cryptographic operation. - /// - internal static string CryptCommon_GenericError - { - get => GetString("CryptCommon_GenericError"); - } - - /// - /// An error occurred during a cryptographic operation. - /// - internal static string FormatCryptCommon_GenericError() - => GetString("CryptCommon_GenericError"); - - /// - /// No service for type '{0}' has been registered. - /// - internal static string DataProtectionExtensions_NoService - { - get => GetString("DataProtectionExtensions_NoService"); - } - - /// - /// No service for type '{0}' has been registered. - /// - internal static string FormatDataProtectionExtensions_NoService(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DataProtectionExtensions_NoService"), p0); - - 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; - } - } -} diff --git a/src/DataProtection/Cryptography.Internal/src/Properties/Resources.Designer.cs b/src/DataProtection/Cryptography.Internal/src/Properties/Resources.Designer.cs deleted file mode 100644 index df010bc683..0000000000 --- a/src/DataProtection/Cryptography.Internal/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -namespace Microsoft.AspNetCore.Cryptography.Internal -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Cryptography.Internal.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// A provider could not be found for algorithm '{0}'. - /// - internal static string BCryptAlgorithmHandle_ProviderNotFound - { - get => GetString("BCryptAlgorithmHandle_ProviderNotFound"); - } - - /// - /// A provider could not be found for algorithm '{0}'. - /// - internal static string FormatBCryptAlgorithmHandle_ProviderNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("BCryptAlgorithmHandle_ProviderNotFound"), p0); - - /// - /// The key length {0} is invalid. Valid key lengths are {1} to {2} bits (step size {3}). - /// - internal static string BCRYPT_KEY_LENGTHS_STRUCT_InvalidKeyLength - { - get => GetString("BCRYPT_KEY_LENGTHS_STRUCT_InvalidKeyLength"); - } - - /// - /// The key length {0} is invalid. Valid key lengths are {1} to {2} bits (step size {3}). - /// - internal static string FormatBCRYPT_KEY_LENGTHS_STRUCT_InvalidKeyLength(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("BCRYPT_KEY_LENGTHS_STRUCT_InvalidKeyLength"), p0, p1, p2, p3); - - /// - /// This operation requires Windows 7 / Windows Server 2008 R2 or later. - /// - internal static string Platform_Windows7Required - { - get => GetString("Platform_Windows7Required"); - } - - /// - /// This operation requires Windows 7 / Windows Server 2008 R2 or later. - /// - internal static string FormatPlatform_Windows7Required() - => GetString("Platform_Windows7Required"); - - /// - /// This operation requires Windows 8 / Windows Server 2012 or later. - /// - internal static string Platform_Windows8Required - { - get => GetString("Platform_Windows8Required"); - } - - /// - /// This operation requires Windows 8 / Windows Server 2012 or later. - /// - internal static string FormatPlatform_Windows8Required() - => GetString("Platform_Windows8Required"); - - 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; - } - } -} diff --git a/src/DataProtection/DataProtection/src/Properties/Resources.Designer.cs b/src/DataProtection/DataProtection/src/Properties/Resources.Designer.cs deleted file mode 100644 index c570287f84..0000000000 --- a/src/DataProtection/DataProtection/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,394 +0,0 @@ -// -namespace Microsoft.AspNetCore.DataProtection -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.DataProtection.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// An error occurred during a cryptographic operation. - /// - internal static string CryptCommon_GenericError - { - get => GetString("CryptCommon_GenericError"); - } - - /// - /// An error occurred during a cryptographic operation. - /// - internal static string FormatCryptCommon_GenericError() - => GetString("CryptCommon_GenericError"); - - /// - /// The provided buffer is of length {0} byte(s). It must instead be exactly {1} byte(s) in length. - /// - internal static string Common_BufferIncorrectlySized - { - get => GetString("Common_BufferIncorrectlySized"); - } - - /// - /// The provided buffer is of length {0} byte(s). It must instead be exactly {1} byte(s) in length. - /// - internal static string FormatCommon_BufferIncorrectlySized(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Common_BufferIncorrectlySized"), p0, p1); - - /// - /// The payload was invalid. - /// - internal static string CryptCommon_PayloadInvalid - { - get => GetString("CryptCommon_PayloadInvalid"); - } - - /// - /// The payload was invalid. - /// - internal static string FormatCryptCommon_PayloadInvalid() - => GetString("CryptCommon_PayloadInvalid"); - - /// - /// Property {0} cannot be null or empty. - /// - internal static string Common_PropertyCannotBeNullOrEmpty - { - get => GetString("Common_PropertyCannotBeNullOrEmpty"); - } - - /// - /// Property {0} cannot be null or empty. - /// - internal static string FormatCommon_PropertyCannotBeNullOrEmpty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Common_PropertyCannotBeNullOrEmpty"), p0); - - /// - /// The provided payload could not be decrypted. Refer to the inner exception for more information. - /// - internal static string Common_DecryptionFailed - { - get => GetString("Common_DecryptionFailed"); - } - - /// - /// The provided payload could not be decrypted. Refer to the inner exception for more information. - /// - internal static string FormatCommon_DecryptionFailed() - => GetString("Common_DecryptionFailed"); - - /// - /// An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information. - /// - internal static string Common_EncryptionFailed - { - get => GetString("Common_EncryptionFailed"); - } - - /// - /// An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information. - /// - internal static string FormatCommon_EncryptionFailed() - => GetString("Common_EncryptionFailed"); - - /// - /// The key {0:B} was not found in the key ring. - /// - internal static string Common_KeyNotFound - { - get => GetString("Common_KeyNotFound"); - } - - /// - /// The key {0:B} was not found in the key ring. - /// - internal static string FormatCommon_KeyNotFound() - => GetString("Common_KeyNotFound"); - - /// - /// The key {0:B} has been revoked. - /// - internal static string Common_KeyRevoked - { - get => GetString("Common_KeyRevoked"); - } - - /// - /// The key {0:B} has been revoked. - /// - internal static string FormatCommon_KeyRevoked() - => GetString("Common_KeyRevoked"); - - /// - /// The provided payload cannot be decrypted because it was not protected with this protection provider. - /// - internal static string ProtectionProvider_BadMagicHeader - { - get => GetString("ProtectionProvider_BadMagicHeader"); - } - - /// - /// The provided payload cannot be decrypted because it was not protected with this protection provider. - /// - internal static string FormatProtectionProvider_BadMagicHeader() - => GetString("ProtectionProvider_BadMagicHeader"); - - /// - /// The provided payload cannot be decrypted because it was protected with a newer version of the protection provider. - /// - internal static string ProtectionProvider_BadVersion - { - get => GetString("ProtectionProvider_BadVersion"); - } - - /// - /// The provided payload cannot be decrypted because it was protected with a newer version of the protection provider. - /// - internal static string FormatProtectionProvider_BadVersion() - => GetString("ProtectionProvider_BadVersion"); - - /// - /// Value must be non-negative. - /// - internal static string Common_ValueMustBeNonNegative - { - get => GetString("Common_ValueMustBeNonNegative"); - } - - /// - /// Value must be non-negative. - /// - internal static string FormatCommon_ValueMustBeNonNegative() - => GetString("Common_ValueMustBeNonNegative"); - - /// - /// The type '{1}' is not assignable to '{0}'. - /// - internal static string TypeExtensions_BadCast - { - get => GetString("TypeExtensions_BadCast"); - } - - /// - /// The type '{1}' is not assignable to '{0}'. - /// - internal static string FormatTypeExtensions_BadCast(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TypeExtensions_BadCast"), p0, p1); - - /// - /// The new key lifetime must be at least one week. - /// - internal static string KeyManagementOptions_MinNewKeyLifetimeViolated - { - get => GetString("KeyManagementOptions_MinNewKeyLifetimeViolated"); - } - - /// - /// The new key lifetime must be at least one week. - /// - internal static string FormatKeyManagementOptions_MinNewKeyLifetimeViolated() - => GetString("KeyManagementOptions_MinNewKeyLifetimeViolated"); - - /// - /// The key {0:B} already exists in the keyring. - /// - internal static string XmlKeyManager_DuplicateKey - { - get => GetString("XmlKeyManager_DuplicateKey"); - } - - /// - /// The key {0:B} already exists in the keyring. - /// - internal static string FormatXmlKeyManager_DuplicateKey() - => GetString("XmlKeyManager_DuplicateKey"); - - /// - /// Argument cannot be null or empty. - /// - internal static string Common_ArgumentCannotBeNullOrEmpty - { - get => GetString("Common_ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Argument cannot be null or empty. - /// - internal static string FormatCommon_ArgumentCannotBeNullOrEmpty() - => GetString("Common_ArgumentCannotBeNullOrEmpty"); - - /// - /// Property {0} must have a non-negative value. - /// - internal static string Common_PropertyMustBeNonNegative - { - get => GetString("Common_PropertyMustBeNonNegative"); - } - - /// - /// Property {0} must have a non-negative value. - /// - internal static string FormatCommon_PropertyMustBeNonNegative(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Common_PropertyMustBeNonNegative"), p0); - - /// - /// GCM algorithms require the Windows platform. - /// - internal static string Platform_WindowsRequiredForGcm - { - get => GetString("Platform_WindowsRequiredForGcm"); - } - - /// - /// GCM algorithms require the Windows platform. - /// - internal static string FormatPlatform_WindowsRequiredForGcm() - => GetString("Platform_WindowsRequiredForGcm"); - - /// - /// A certificate with the thumbprint '{0}' could not be found. - /// - internal static string CertificateXmlEncryptor_CertificateNotFound - { - get => GetString("CertificateXmlEncryptor_CertificateNotFound"); - } - - /// - /// A certificate with the thumbprint '{0}' could not be found. - /// - internal static string FormatCertificateXmlEncryptor_CertificateNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CertificateXmlEncryptor_CertificateNotFound"), p0); - - /// - /// Decrypting EncryptedXml-encapsulated payloads is not yet supported on Core CLR. - /// - internal static string EncryptedXmlDecryptor_DoesNotWorkOnCoreClr - { - get => GetString("EncryptedXmlDecryptor_DoesNotWorkOnCoreClr"); - } - - /// - /// Decrypting EncryptedXml-encapsulated payloads is not yet supported on Core CLR. - /// - internal static string FormatEncryptedXmlDecryptor_DoesNotWorkOnCoreClr() - => GetString("EncryptedXmlDecryptor_DoesNotWorkOnCoreClr"); - - /// - /// The symmetric algorithm block size of {0} bits is invalid. The block size must be between 64 and 2048 bits, inclusive, and it must be a multiple of 8 bits. - /// - internal static string AlgorithmAssert_BadBlockSize - { - get => GetString("AlgorithmAssert_BadBlockSize"); - } - - /// - /// The symmetric algorithm block size of {0} bits is invalid. The block size must be between 64 and 2048 bits, inclusive, and it must be a multiple of 8 bits. - /// - internal static string FormatAlgorithmAssert_BadBlockSize(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("AlgorithmAssert_BadBlockSize"), p0); - - /// - /// The validation algorithm digest size of {0} bits is invalid. The digest size must be between 128 and 2048 bits, inclusive, and it must be a multiple of 8 bits. - /// - internal static string AlgorithmAssert_BadDigestSize - { - get => GetString("AlgorithmAssert_BadDigestSize"); - } - - /// - /// The validation algorithm digest size of {0} bits is invalid. The digest size must be between 128 and 2048 bits, inclusive, and it must be a multiple of 8 bits. - /// - internal static string FormatAlgorithmAssert_BadDigestSize(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("AlgorithmAssert_BadDigestSize"), p0); - - /// - /// The symmetric algorithm key size of {0} bits is invalid. The key size must be between 128 and 2048 bits, inclusive, and it must be a multiple of 8 bits. - /// - internal static string AlgorithmAssert_BadKeySize - { - get => GetString("AlgorithmAssert_BadKeySize"); - } - - /// - /// The symmetric algorithm key size of {0} bits is invalid. The key size must be between 128 and 2048 bits, inclusive, and it must be a multiple of 8 bits. - /// - internal static string FormatAlgorithmAssert_BadKeySize(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("AlgorithmAssert_BadKeySize"), p0); - - /// - /// The key ring does not contain a valid default protection key. The data protection system cannot create a new key because auto-generation of keys is disabled. - /// - internal static string KeyRingProvider_NoDefaultKey_AutoGenerateDisabled - { - get => GetString("KeyRingProvider_NoDefaultKey_AutoGenerateDisabled"); - } - - /// - /// The key ring does not contain a valid default protection key. The data protection system cannot create a new key because auto-generation of keys is disabled. - /// - internal static string FormatKeyRingProvider_NoDefaultKey_AutoGenerateDisabled() - => GetString("KeyRingProvider_NoDefaultKey_AutoGenerateDisabled"); - - /// - /// {0} must not be negative - /// - internal static string LifetimeMustNotBeNegative - { - get => GetString("LifetimeMustNotBeNegative"); - } - - /// - /// {0} must not be negative - /// - internal static string FormatLifetimeMustNotBeNegative(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("LifetimeMustNotBeNegative"), p0); - - /// - /// The '{0}' instance could not be found. When an '{1}' instance is set, a corresponding '{0}' instance must also be set. - /// - internal static string XmlKeyManager_IXmlRepositoryNotFound - { - get => GetString("XmlKeyManager_IXmlRepositoryNotFound"); - } - - /// - /// The '{0}' instance could not be found. When an '{1}' instance is set, a corresponding '{0}' instance must also be set. - /// - internal static string FormatXmlKeyManager_IXmlRepositoryNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("XmlKeyManager_IXmlRepositoryNotFound"), p0, p1); - - /// - /// Storing keys in a directory '{path}' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. - /// - internal static string FileSystem_EphemeralKeysLocationInContainer - { - get => GetString("FileSystem_EphemeralKeysLocationInContainer"); - } - - /// - /// Storing keys in a directory '{path}' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. - /// - internal static string FormatFileSystem_EphemeralKeysLocationInContainer(object path) - => string.Format(CultureInfo.CurrentCulture, GetString("FileSystem_EphemeralKeysLocationInContainer", "path"), path); - - 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; - } - } -} diff --git a/src/DataProtection/Extensions/src/Properties/Resources.Designer.cs b/src/DataProtection/Extensions/src/Properties/Resources.Designer.cs deleted file mode 100644 index 8fba5cd9f2..0000000000 --- a/src/DataProtection/Extensions/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -namespace Microsoft.AspNetCore.DataProtection.Extensions -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.DataProtection.Extensions.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// An error occurred during a cryptographic operation. - /// - internal static string CryptCommon_GenericError - { - get => GetString("CryptCommon_GenericError"); - } - - /// - /// An error occurred during a cryptographic operation. - /// - internal static string FormatCryptCommon_GenericError() - => GetString("CryptCommon_GenericError"); - - /// - /// The payload expired at {0}. - /// - internal static string TimeLimitedDataProtector_PayloadExpired - { - get => GetString("TimeLimitedDataProtector_PayloadExpired"); - } - - /// - /// The payload expired at {0}. - /// - internal static string FormatTimeLimitedDataProtector_PayloadExpired(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TimeLimitedDataProtector_PayloadExpired"), p0); - - /// - /// The payload is invalid. - /// - internal static string TimeLimitedDataProtector_PayloadInvalid - { - get => GetString("TimeLimitedDataProtector_PayloadInvalid"); - } - - /// - /// The payload is invalid. - /// - internal static string FormatTimeLimitedDataProtector_PayloadInvalid() - => GetString("TimeLimitedDataProtector_PayloadInvalid"); - - 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; - } - } -} diff --git a/src/Features/JsonPatch/src/Properties/Resources.Designer.cs b/src/Features/JsonPatch/src/Properties/Resources.Designer.cs deleted file mode 100644 index c314465238..0000000000 --- a/src/Features/JsonPatch/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,338 +0,0 @@ -// -namespace Microsoft.AspNetCore.JsonPatch -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.JsonPatch.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The property at '{0}' could not be copied. - /// - internal static string CannotCopyProperty - { - get => GetString("CannotCopyProperty"); - } - - /// - /// The property at '{0}' could not be copied. - /// - internal static string FormatCannotCopyProperty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CannotCopyProperty"), p0); - - /// - /// The type of the property at path '{0}' could not be determined. - /// - internal static string CannotDeterminePropertyType - { - get => GetString("CannotDeterminePropertyType"); - } - - /// - /// The type of the property at path '{0}' could not be determined. - /// - internal static string FormatCannotDeterminePropertyType(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CannotDeterminePropertyType"), p0); - - /// - /// The '{0}' operation at path '{1}' could not be performed. - /// - internal static string CannotPerformOperation - { - get => GetString("CannotPerformOperation"); - } - - /// - /// The '{0}' operation at path '{1}' could not be performed. - /// - internal static string FormatCannotPerformOperation(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("CannotPerformOperation"), p0, p1); - - /// - /// The property at '{0}' could not be read. - /// - internal static string CannotReadProperty - { - get => GetString("CannotReadProperty"); - } - - /// - /// The property at '{0}' could not be read. - /// - internal static string FormatCannotReadProperty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CannotReadProperty"), p0); - - /// - /// The property at path '{0}' could not be updated. - /// - internal static string CannotUpdateProperty - { - get => GetString("CannotUpdateProperty"); - } - - /// - /// The property at path '{0}' could not be updated. - /// - internal static string FormatCannotUpdateProperty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CannotUpdateProperty"), p0); - - /// - /// The expression '{0}' is not supported. Supported expressions include member access and indexer expressions. - /// - internal static string ExpressionTypeNotSupported - { - get => GetString("ExpressionTypeNotSupported"); - } - - /// - /// The expression '{0}' is not supported. Supported expressions include member access and indexer expressions. - /// - internal static string FormatExpressionTypeNotSupported(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ExpressionTypeNotSupported"), p0); - - /// - /// The index value provided by path segment '{0}' is out of bounds of the array size. - /// - internal static string IndexOutOfBounds - { - get => GetString("IndexOutOfBounds"); - } - - /// - /// The index value provided by path segment '{0}' is out of bounds of the array size. - /// - internal static string FormatIndexOutOfBounds(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("IndexOutOfBounds"), p0); - - /// - /// The path segment '{0}' is invalid for an array index. - /// - internal static string InvalidIndexValue - { - get => GetString("InvalidIndexValue"); - } - - /// - /// The path segment '{0}' is invalid for an array index. - /// - internal static string FormatInvalidIndexValue(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidIndexValue"), p0); - - /// - /// The JSON patch document was malformed and could not be parsed. - /// - internal static string InvalidJsonPatchDocument - { - get => GetString("InvalidJsonPatchDocument"); - } - - /// - /// The JSON patch document was malformed and could not be parsed. - /// - internal static string FormatInvalidJsonPatchDocument() - => GetString("InvalidJsonPatchDocument"); - - /// - /// Invalid JsonPatch operation '{0}'. - /// - internal static string InvalidJsonPatchOperation - { - get => GetString("InvalidJsonPatchOperation"); - } - - /// - /// Invalid JsonPatch operation '{0}'. - /// - internal static string FormatInvalidJsonPatchOperation(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidJsonPatchOperation"), p0); - - /// - /// The provided path segment '{0}' cannot be converted to the target type. - /// - internal static string InvalidPathSegment - { - get => GetString("InvalidPathSegment"); - } - - /// - /// The provided path segment '{0}' cannot be converted to the target type. - /// - internal static string FormatInvalidPathSegment(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidPathSegment"), p0); - - /// - /// The provided string '{0}' is an invalid path. - /// - internal static string InvalidValueForPath - { - get => GetString("InvalidValueForPath"); - } - - /// - /// The provided string '{0}' is an invalid path. - /// - internal static string FormatInvalidValueForPath(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidValueForPath"), p0); - - /// - /// The value '{0}' is invalid for target location. - /// - internal static string InvalidValueForProperty - { - get => GetString("InvalidValueForProperty"); - } - - /// - /// The value '{0}' is invalid for target location. - /// - internal static string FormatInvalidValueForProperty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidValueForProperty"), p0); - - /// - /// '{0}' must be of type '{1}'. - /// - internal static string ParameterMustMatchType - { - get => GetString("ParameterMustMatchType"); - } - - /// - /// '{0}' must be of type '{1}'. - /// - internal static string FormatParameterMustMatchType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ParameterMustMatchType"), p0, p1); - - /// - /// The type '{0}' which is an array is not supported for json patch operations as it has a fixed size. - /// - internal static string PatchNotSupportedForArrays - { - get => GetString("PatchNotSupportedForArrays"); - } - - /// - /// The type '{0}' which is an array is not supported for json patch operations as it has a fixed size. - /// - internal static string FormatPatchNotSupportedForArrays(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("PatchNotSupportedForArrays"), p0); - - /// - /// The type '{0}' which is a non generic list is not supported for json patch operations. Only generic list types are supported. - /// - internal static string PatchNotSupportedForNonGenericLists - { - get => GetString("PatchNotSupportedForNonGenericLists"); - } - - /// - /// The type '{0}' which is a non generic list is not supported for json patch operations. Only generic list types are supported. - /// - internal static string FormatPatchNotSupportedForNonGenericLists(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("PatchNotSupportedForNonGenericLists"), p0); - - /// - /// The target location specified by path segment '{0}' was not found. - /// - internal static string TargetLocationAtPathSegmentNotFound - { - get => GetString("TargetLocationAtPathSegmentNotFound"); - } - - /// - /// The target location specified by path segment '{0}' was not found. - /// - internal static string FormatTargetLocationAtPathSegmentNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TargetLocationAtPathSegmentNotFound"), p0); - - /// - /// For operation '{0}', the target location specified by path '{1}' was not found. - /// - internal static string TargetLocationNotFound - { - get => GetString("TargetLocationNotFound"); - } - - /// - /// For operation '{0}', the target location specified by path '{1}' was not found. - /// - internal static string FormatTargetLocationNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TargetLocationNotFound"), p0, p1); - - /// - /// The test operation is not supported. - /// - internal static string TestOperationNotSupported - { - get => GetString("TestOperationNotSupported"); - } - - /// - /// The test operation is not supported. - /// - internal static string FormatTestOperationNotSupported() - => GetString("TestOperationNotSupported"); - - /// - /// The current value '{0}' at position '{2}' is not equal to the test value '{1}'. - /// - internal static string ValueAtListPositionNotEqualToTestValue - { - get => GetString("ValueAtListPositionNotEqualToTestValue"); - } - - /// - /// The current value '{0}' at position '{2}' is not equal to the test value '{1}'. - /// - internal static string FormatValueAtListPositionNotEqualToTestValue(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ValueAtListPositionNotEqualToTestValue"), p0, p1, p2); - - /// - /// The value at '{0}' cannot be null or empty to perform the test operation. - /// - internal static string ValueForTargetSegmentCannotBeNullOrEmpty - { - get => GetString("ValueForTargetSegmentCannotBeNullOrEmpty"); - } - - /// - /// The value at '{0}' cannot be null or empty to perform the test operation. - /// - internal static string FormatValueForTargetSegmentCannotBeNullOrEmpty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ValueForTargetSegmentCannotBeNullOrEmpty"), p0); - - /// - /// The current value '{0}' at path '{2}' is not equal to the test value '{1}'. - /// - internal static string ValueNotEqualToTestValue - { - get => GetString("ValueNotEqualToTestValue"); - } - - /// - /// The current value '{0}' at path '{2}' is not equal to the test value '{1}'. - /// - internal static string FormatValueNotEqualToTestValue(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ValueNotEqualToTestValue"), 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; - } - } -} diff --git a/src/Hosting/Hosting/src/Properties/Resources.Designer.cs b/src/Hosting/Hosting/src/Properties/Resources.Designer.cs deleted file mode 100644 index 4dcdd4b244..0000000000 --- a/src/Hosting/Hosting/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -namespace Microsoft.AspNetCore.Hosting -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Hosting.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Internal Server Error - /// - internal static string ErrorPageHtml_Title - { - get => GetString("ErrorPageHtml_Title"); - } - - /// - /// Internal Server Error - /// - internal static string FormatErrorPageHtml_Title() - => GetString("ErrorPageHtml_Title"); - - /// - /// An error occurred while starting the application. - /// - internal static string ErrorPageHtml_UnhandledException - { - get => GetString("ErrorPageHtml_UnhandledException"); - } - - /// - /// An error occurred while starting the application. - /// - internal static string FormatErrorPageHtml_UnhandledException() - => GetString("ErrorPageHtml_UnhandledException"); - - /// - /// Unknown location - /// - internal static string ErrorPageHtml_UnknownLocation - { - get => GetString("ErrorPageHtml_UnknownLocation"); - } - - /// - /// Unknown location - /// - internal static string FormatErrorPageHtml_UnknownLocation() - => GetString("ErrorPageHtml_UnknownLocation"); - - /// - /// WebHostBuilder allows creation only of a single instance of WebHost - /// - internal static string WebHostBuilder_SingleInstance - { - get => GetString("WebHostBuilder_SingleInstance"); - } - - /// - /// WebHostBuilder allows creation only of a single instance of WebHost - /// - internal static string FormatWebHostBuilder_SingleInstance() - => GetString("WebHostBuilder_SingleInstance"); - - 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; - } - } -} diff --git a/src/Http/Http.Abstractions/src/Properties/Resources.Designer.cs b/src/Http/Http.Abstractions/src/Properties/Resources.Designer.cs deleted file mode 100644 index 02985d630b..0000000000 --- a/src/Http/Http.Abstractions/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -namespace Microsoft.AspNetCore.Http.Abstractions -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Http.Abstractions.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// '{0}' is not available. - /// - internal static string Exception_UseMiddlewareIServiceProviderNotAvailable - { - get => GetString("Exception_UseMiddlewareIServiceProviderNotAvailable"); - } - - /// - /// '{0}' is not available. - /// - internal static string FormatException_UseMiddlewareIServiceProviderNotAvailable(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UseMiddlewareIServiceProviderNotAvailable"), p0); - - /// - /// No public '{0}' or '{1}' method found for middleware of type '{2}'. - /// - internal static string Exception_UseMiddlewareNoInvokeMethod - { - get => GetString("Exception_UseMiddlewareNoInvokeMethod"); - } - - /// - /// No public '{0}' or '{1}' method found for middleware of type '{2}'. - /// - internal static string FormatException_UseMiddlewareNoInvokeMethod(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UseMiddlewareNoInvokeMethod"), p0, p1, p2); - - /// - /// '{0}' or '{1}' does not return an object of type '{2}'. - /// - internal static string Exception_UseMiddlewareNonTaskReturnType - { - get => GetString("Exception_UseMiddlewareNonTaskReturnType"); - } - - /// - /// '{0}' or '{1}' does not return an object of type '{2}'. - /// - internal static string FormatException_UseMiddlewareNonTaskReturnType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UseMiddlewareNonTaskReturnType"), p0, p1, p2); - - /// - /// The '{0}' or '{1}' method's first argument must be of type '{2}'. - /// - internal static string Exception_UseMiddlewareNoParameters - { - get => GetString("Exception_UseMiddlewareNoParameters"); - } - - /// - /// The '{0}' or '{1}' method's first argument must be of type '{2}'. - /// - internal static string FormatException_UseMiddlewareNoParameters(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UseMiddlewareNoParameters"), p0, p1, p2); - - /// - /// Multiple public '{0}' or '{1}' methods are available. - /// - internal static string Exception_UseMiddleMutlipleInvokes - { - get => GetString("Exception_UseMiddleMutlipleInvokes"); - } - - /// - /// Multiple public '{0}' or '{1}' methods are available. - /// - internal static string FormatException_UseMiddleMutlipleInvokes(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UseMiddleMutlipleInvokes"), p0, p1); - - /// - /// The path in '{0}' must start with '/'. - /// - internal static string Exception_PathMustStartWithSlash - { - get => GetString("Exception_PathMustStartWithSlash"); - } - - /// - /// The path in '{0}' must start with '/'. - /// - internal static string FormatException_PathMustStartWithSlash(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_PathMustStartWithSlash"), p0); - - /// - /// Unable to resolve service for type '{0}' while attempting to Invoke middleware '{1}'. - /// - internal static string Exception_InvokeMiddlewareNoService - { - get => GetString("Exception_InvokeMiddlewareNoService"); - } - - /// - /// Unable to resolve service for type '{0}' while attempting to Invoke middleware '{1}'. - /// - internal static string FormatException_InvokeMiddlewareNoService(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_InvokeMiddlewareNoService"), p0, p1); - - /// - /// The '{0}' method must not have ref or out parameters. - /// - internal static string Exception_InvokeDoesNotSupportRefOrOutParams - { - get => GetString("Exception_InvokeDoesNotSupportRefOrOutParams"); - } - - /// - /// The '{0}' method must not have ref or out parameters. - /// - internal static string FormatException_InvokeDoesNotSupportRefOrOutParams(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_InvokeDoesNotSupportRefOrOutParams"), p0); - - /// - /// The value must be greater than zero. - /// - internal static string Exception_PortMustBeGreaterThanZero - { - get => GetString("Exception_PortMustBeGreaterThanZero"); - } - - /// - /// The value must be greater than zero. - /// - internal static string FormatException_PortMustBeGreaterThanZero() - => GetString("Exception_PortMustBeGreaterThanZero"); - - /// - /// No service for type '{0}' has been registered. - /// - internal static string Exception_UseMiddlewareNoMiddlewareFactory - { - get => GetString("Exception_UseMiddlewareNoMiddlewareFactory"); - } - - /// - /// No service for type '{0}' has been registered. - /// - internal static string FormatException_UseMiddlewareNoMiddlewareFactory(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UseMiddlewareNoMiddlewareFactory"), p0); - - /// - /// '{0}' failed to create middleware of type '{1}'. - /// - internal static string Exception_UseMiddlewareUnableToCreateMiddleware - { - get => GetString("Exception_UseMiddlewareUnableToCreateMiddleware"); - } - - /// - /// '{0}' failed to create middleware of type '{1}'. - /// - internal static string FormatException_UseMiddlewareUnableToCreateMiddleware(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UseMiddlewareUnableToCreateMiddleware"), p0, p1); - - /// - /// Types that implement '{0}' do not support explicit arguments. - /// - internal static string Exception_UseMiddlewareExplicitArgumentsNotSupported - { - get => GetString("Exception_UseMiddlewareExplicitArgumentsNotSupported"); - } - - /// - /// Types that implement '{0}' do not support explicit arguments. - /// - internal static string FormatException_UseMiddlewareExplicitArgumentsNotSupported(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UseMiddlewareExplicitArgumentsNotSupported"), p0); - - /// - /// Argument cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Argument cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - /// - /// An element with the key '{0}' already exists in the {1}. - /// - internal static string RouteValueDictionary_DuplicateKey - { - get => GetString("RouteValueDictionary_DuplicateKey"); - } - - /// - /// An element with the key '{0}' already exists in the {1}. - /// - internal static string FormatRouteValueDictionary_DuplicateKey(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("RouteValueDictionary_DuplicateKey"), p0, p1); - - /// - /// The type '{0}' defines properties '{1}' and '{2}' which differ only by casing. This is not supported by {3} which uses case-insensitive comparisons. - /// - internal static string RouteValueDictionary_DuplicatePropertyName - { - get => GetString("RouteValueDictionary_DuplicatePropertyName"); - } - - /// - /// The type '{0}' defines properties '{1}' and '{2}' which differ only by casing. This is not supported by {3} which uses case-insensitive comparisons. - /// - internal static string FormatRouteValueDictionary_DuplicatePropertyName(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("RouteValueDictionary_DuplicatePropertyName"), 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; - } - } -} diff --git a/src/Http/Routing/src/Properties/Resources.Designer.cs b/src/Http/Routing/src/Properties/Resources.Designer.cs deleted file mode 100644 index 72372c4a89..0000000000 --- a/src/Http/Routing/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,562 +0,0 @@ -// -namespace Microsoft.AspNetCore.Routing -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Routing.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Value must be greater than or equal to {0}. - /// - internal static string ArgumentMustBeGreaterThanOrEqualTo - { - get => GetString("ArgumentMustBeGreaterThanOrEqualTo"); - } - - /// - /// Value must be greater than or equal to {0}. - /// - internal static string FormatArgumentMustBeGreaterThanOrEqualTo(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ArgumentMustBeGreaterThanOrEqualTo"), p0); - - /// - /// The value for argument '{0}' should be less than or equal to the value for the argument '{1}'. - /// - internal static string RangeConstraint_MinShouldBeLessThanOrEqualToMax - { - get => GetString("RangeConstraint_MinShouldBeLessThanOrEqualToMax"); - } - - /// - /// The value for argument '{0}' should be less than or equal to the value for the argument '{1}'. - /// - internal static string FormatRangeConstraint_MinShouldBeLessThanOrEqualToMax(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("RangeConstraint_MinShouldBeLessThanOrEqualToMax"), p0, p1); - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string PropertyOfTypeCannotBeNull - { - get => GetString("PropertyOfTypeCannotBeNull"); - } - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); - - /// - /// The supplied route name '{0}' is ambiguous and matched more than one route. - /// - internal static string NamedRoutes_AmbiguousRoutesFound - { - get => GetString("NamedRoutes_AmbiguousRoutesFound"); - } - - /// - /// The supplied route name '{0}' is ambiguous and matched more than one route. - /// - internal static string FormatNamedRoutes_AmbiguousRoutesFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("NamedRoutes_AmbiguousRoutesFound"), p0); - - /// - /// A default handler must be set on the {0}. - /// - internal static string DefaultHandler_MustBeSet - { - get => GetString("DefaultHandler_MustBeSet"); - } - - /// - /// A default handler must be set on the {0}. - /// - internal static string FormatDefaultHandler_MustBeSet(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DefaultHandler_MustBeSet"), p0); - - /// - /// The constructor to use for activating the constraint type '{0}' is ambiguous. Multiple constructors were found with the following number of parameters: {1}. - /// - internal static string DefaultInlineConstraintResolver_AmbiguousCtors - { - get => GetString("DefaultInlineConstraintResolver_AmbiguousCtors"); - } - - /// - /// The constructor to use for activating the constraint type '{0}' is ambiguous. Multiple constructors were found with the following number of parameters: {1}. - /// - internal static string FormatDefaultInlineConstraintResolver_AmbiguousCtors(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("DefaultInlineConstraintResolver_AmbiguousCtors"), p0, p1); - - /// - /// Could not find a constructor for constraint type '{0}' with the following number of parameters: {1}. - /// - internal static string DefaultInlineConstraintResolver_CouldNotFindCtor - { - get => GetString("DefaultInlineConstraintResolver_CouldNotFindCtor"); - } - - /// - /// Could not find a constructor for constraint type '{0}' with the following number of parameters: {1}. - /// - internal static string FormatDefaultInlineConstraintResolver_CouldNotFindCtor(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("DefaultInlineConstraintResolver_CouldNotFindCtor"), p0, p1); - - /// - /// The constraint type '{0}' which is mapped to constraint key '{1}' must implement the '{2}' interface. - /// - internal static string DefaultInlineConstraintResolver_TypeNotConstraint - { - get => GetString("DefaultInlineConstraintResolver_TypeNotConstraint"); - } - - /// - /// The constraint type '{0}' which is mapped to constraint key '{1}' must implement the '{2}' interface. - /// - internal static string FormatDefaultInlineConstraintResolver_TypeNotConstraint(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("DefaultInlineConstraintResolver_TypeNotConstraint"), p0, p1, p2); - - /// - /// A path segment that contains more than one section, such as a literal section or a parameter, cannot contain a catch-all parameter. - /// - internal static string TemplateRoute_CannotHaveCatchAllInMultiSegment - { - get => GetString("TemplateRoute_CannotHaveCatchAllInMultiSegment"); - } - - /// - /// A path segment that contains more than one section, such as a literal section or a parameter, cannot contain a catch-all parameter. - /// - internal static string FormatTemplateRoute_CannotHaveCatchAllInMultiSegment() - => GetString("TemplateRoute_CannotHaveCatchAllInMultiSegment"); - - /// - /// The route parameter '{0}' has both an inline default value and an explicit default value specified. A route parameter cannot contain an inline default value when a default value is specified explicitly. Consider removing one of them. - /// - internal static string TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly - { - get => GetString("TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly"); - } - - /// - /// The route parameter '{0}' has both an inline default value and an explicit default value specified. A route parameter cannot contain an inline default value when a default value is specified explicitly. Consider removing one of them. - /// - internal static string FormatTemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly"), p0); - - /// - /// A path segment cannot contain two consecutive parameters. They must be separated by a '/' or by a literal string. - /// - internal static string TemplateRoute_CannotHaveConsecutiveParameters - { - get => GetString("TemplateRoute_CannotHaveConsecutiveParameters"); - } - - /// - /// A path segment cannot contain two consecutive parameters. They must be separated by a '/' or by a literal string. - /// - internal static string FormatTemplateRoute_CannotHaveConsecutiveParameters() - => GetString("TemplateRoute_CannotHaveConsecutiveParameters"); - - /// - /// The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. - /// - internal static string TemplateRoute_CannotHaveConsecutiveSeparators - { - get => GetString("TemplateRoute_CannotHaveConsecutiveSeparators"); - } - - /// - /// The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. - /// - internal static string FormatTemplateRoute_CannotHaveConsecutiveSeparators() - => GetString("TemplateRoute_CannotHaveConsecutiveSeparators"); - - /// - /// A catch-all parameter cannot be marked optional. - /// - internal static string TemplateRoute_CatchAllCannotBeOptional - { - get => GetString("TemplateRoute_CatchAllCannotBeOptional"); - } - - /// - /// A catch-all parameter cannot be marked optional. - /// - internal static string FormatTemplateRoute_CatchAllCannotBeOptional() - => GetString("TemplateRoute_CatchAllCannotBeOptional"); - - /// - /// An optional parameter cannot have default value. - /// - internal static string TemplateRoute_OptionalCannotHaveDefaultValue - { - get => GetString("TemplateRoute_OptionalCannotHaveDefaultValue"); - } - - /// - /// An optional parameter cannot have default value. - /// - internal static string FormatTemplateRoute_OptionalCannotHaveDefaultValue() - => GetString("TemplateRoute_OptionalCannotHaveDefaultValue"); - - /// - /// A catch-all parameter can only appear as the last segment of the route template. - /// - internal static string TemplateRoute_CatchAllMustBeLast - { - get => GetString("TemplateRoute_CatchAllMustBeLast"); - } - - /// - /// A catch-all parameter can only appear as the last segment of the route template. - /// - internal static string FormatTemplateRoute_CatchAllMustBeLast() - => GetString("TemplateRoute_CatchAllMustBeLast"); - - /// - /// The literal section '{0}' is invalid. Literal sections cannot contain the '?' character. - /// - internal static string TemplateRoute_InvalidLiteral - { - get => GetString("TemplateRoute_InvalidLiteral"); - } - - /// - /// The literal section '{0}' is invalid. Literal sections cannot contain the '?' character. - /// - internal static string FormatTemplateRoute_InvalidLiteral(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_InvalidLiteral"), p0); - - /// - /// The route parameter name '{0}' is invalid. Route parameter names must be non-empty and cannot contain these characters: '{{', '}}', '/'. The '?' character marks a parameter as optional, and can occur only at the end of the parameter. The '*' character marks a parameter as catch-all, and can occur only at the start of the parameter. - /// - internal static string TemplateRoute_InvalidParameterName - { - get => GetString("TemplateRoute_InvalidParameterName"); - } - - /// - /// The route parameter name '{0}' is invalid. Route parameter names must be non-empty and cannot contain these characters: '{{', '}}', '/'. The '?' character marks a parameter as optional, and can occur only at the end of the parameter. The '*' character marks a parameter as catch-all, and can occur only at the start of the parameter. - /// - internal static string FormatTemplateRoute_InvalidParameterName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_InvalidParameterName"), p0); - - /// - /// The route template cannot start with a '~' character unless followed by a '/'. - /// - internal static string TemplateRoute_InvalidRouteTemplate - { - get => GetString("TemplateRoute_InvalidRouteTemplate"); - } - - /// - /// The route template cannot start with a '~' character unless followed by a '/'. - /// - internal static string FormatTemplateRoute_InvalidRouteTemplate() - => GetString("TemplateRoute_InvalidRouteTemplate"); - - /// - /// There is an incomplete parameter in the route template. Check that each '{' character has a matching '}' character. - /// - internal static string TemplateRoute_MismatchedParameter - { - get => GetString("TemplateRoute_MismatchedParameter"); - } - - /// - /// There is an incomplete parameter in the route template. Check that each '{' character has a matching '}' character. - /// - internal static string FormatTemplateRoute_MismatchedParameter() - => GetString("TemplateRoute_MismatchedParameter"); - - /// - /// The route parameter name '{0}' appears more than one time in the route template. - /// - internal static string TemplateRoute_RepeatedParameter - { - get => GetString("TemplateRoute_RepeatedParameter"); - } - - /// - /// The route parameter name '{0}' appears more than one time in the route template. - /// - internal static string FormatTemplateRoute_RepeatedParameter(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_RepeatedParameter"), p0); - - /// - /// The constraint entry '{0}' - '{1}' on the route '{2}' must have a string value or be of a type which implements '{3}'. - /// - internal static string RouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint - { - get => GetString("RouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint"); - } - - /// - /// The constraint entry '{0}' - '{1}' on the route '{2}' must have a string value or be of a type which implements '{3}'. - /// - internal static string FormatRouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("RouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint"), p0, p1, p2, p3); - - /// - /// The constraint entry '{0}' - '{1}' on the route '{2}' could not be resolved by the constraint resolver of type '{3}'. - /// - internal static string RouteConstraintBuilder_CouldNotResolveConstraint - { - get => GetString("RouteConstraintBuilder_CouldNotResolveConstraint"); - } - - /// - /// The constraint entry '{0}' - '{1}' on the route '{2}' could not be resolved by the constraint resolver of type '{3}'. - /// - internal static string FormatRouteConstraintBuilder_CouldNotResolveConstraint(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("RouteConstraintBuilder_CouldNotResolveConstraint"), p0, p1, p2, p3); - - /// - /// In a route parameter, '{' and '}' must be escaped with '{{' and '}}'. - /// - internal static string TemplateRoute_UnescapedBrace - { - get => GetString("TemplateRoute_UnescapedBrace"); - } - - /// - /// In a route parameter, '{' and '}' must be escaped with '{{' and '}}'. - /// - internal static string FormatTemplateRoute_UnescapedBrace() - => GetString("TemplateRoute_UnescapedBrace"); - - /// - /// In the segment '{0}', the optional parameter '{1}' is preceded by an invalid segment '{2}'. Only a period (.) can precede an optional parameter. - /// - internal static string TemplateRoute_OptionalParameterCanbBePrecededByPeriod - { - get => GetString("TemplateRoute_OptionalParameterCanbBePrecededByPeriod"); - } - - /// - /// In the segment '{0}', the optional parameter '{1}' is preceded by an invalid segment '{2}'. Only a period (.) can precede an optional parameter. - /// - internal static string FormatTemplateRoute_OptionalParameterCanbBePrecededByPeriod(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_OptionalParameterCanbBePrecededByPeriod"), p0, p1, p2); - - /// - /// An optional parameter must be at the end of the segment. In the segment '{0}', optional parameter '{1}' is followed by '{2}'. - /// - internal static string TemplateRoute_OptionalParameterHasTobeTheLast - { - get => GetString("TemplateRoute_OptionalParameterHasTobeTheLast"); - } - - /// - /// An optional parameter must be at the end of the segment. In the segment '{0}', optional parameter '{1}' is followed by '{2}'. - /// - internal static string FormatTemplateRoute_OptionalParameterHasTobeTheLast(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_OptionalParameterHasTobeTheLast"), p0, p1, p2); - - /// - /// Two or more routes named '{0}' have different templates. - /// - internal static string AttributeRoute_DifferentLinkGenerationEntries_SameName - { - get => GetString("AttributeRoute_DifferentLinkGenerationEntries_SameName"); - } - - /// - /// Two or more routes named '{0}' have different templates. - /// - internal static string FormatAttributeRoute_DifferentLinkGenerationEntries_SameName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_DifferentLinkGenerationEntries_SameName"), p0); - - /// - /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. - /// - internal static string UnableToFindServices - { - get => GetString("UnableToFindServices"); - } - - /// - /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. - /// - internal static string FormatUnableToFindServices(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("UnableToFindServices"), p0, p1, p2); - - /// - /// An error occurred while creating the route with name '{0}' and template '{1}'. - /// - internal static string TemplateRoute_Exception - { - get => GetString("TemplateRoute_Exception"); - } - - /// - /// An error occurred while creating the route with name '{0}' and template '{1}'. - /// - internal static string FormatTemplateRoute_Exception(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_Exception"), p0, p1); - - /// - /// The request matched multiple endpoints. Matches: {0}{0}{1} - /// - internal static string AmbiguousEndpoints - { - get => GetString("AmbiguousEndpoints"); - } - - /// - /// The request matched multiple endpoints. Matches: {0}{0}{1} - /// - internal static string FormatAmbiguousEndpoints(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("AmbiguousEndpoints"), p0, p1); - - /// - /// Value cannot be null or empty. - /// - internal static string Argument_NullOrEmpty - { - get => GetString("Argument_NullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgument_NullOrEmpty() - => GetString("Argument_NullOrEmpty"); - - /// - /// The collection cannot be empty. - /// - internal static string RoutePatternBuilder_CollectionCannotBeEmpty - { - get => GetString("RoutePatternBuilder_CollectionCannotBeEmpty"); - } - - /// - /// The collection cannot be empty. - /// - internal static string FormatRoutePatternBuilder_CollectionCannotBeEmpty() - => GetString("RoutePatternBuilder_CollectionCannotBeEmpty"); - - /// - /// The constraint entry '{0}' - '{1}' must have a string value or be of a type which implements '{2}'. - /// - internal static string ConstraintMustBeStringOrConstraint - { - get => GetString("ConstraintMustBeStringOrConstraint"); - } - - /// - /// The constraint entry '{0}' - '{1}' must have a string value or be of a type which implements '{2}'. - /// - internal static string FormatConstraintMustBeStringOrConstraint(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ConstraintMustBeStringOrConstraint"), p0, p1, p2); - - /// - /// Invalid constraint '{0}'. A constraint must be of type 'string' or '{1}'. - /// - internal static string RoutePattern_InvalidConstraintReference - { - get => GetString("RoutePattern_InvalidConstraintReference"); - } - - /// - /// Invalid constraint '{0}'. A constraint must be of type 'string' or '{1}'. - /// - internal static string FormatRoutePattern_InvalidConstraintReference(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("RoutePattern_InvalidConstraintReference"), p0, p1); - - /// - /// Invalid constraint '{0}' for parameter '{1}'. A constraint must be of type 'string', '{2}', or '{3}'. - /// - internal static string RoutePattern_InvalidParameterConstraintReference - { - get => GetString("RoutePattern_InvalidParameterConstraintReference"); - } - - /// - /// Invalid constraint '{0}' for parameter '{1}'. A constraint must be of type 'string', '{2}', or '{3}'. - /// - internal static string FormatRoutePattern_InvalidParameterConstraintReference(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("RoutePattern_InvalidParameterConstraintReference"), p0, p1, p2, p3); - - /// - /// The constraint reference '{0}' could not be resolved to a type. Register the constraint type with '{1}.{2}'. - /// - internal static string RoutePattern_ConstraintReferenceNotFound - { - get => GetString("RoutePattern_ConstraintReferenceNotFound"); - } - - /// - /// The constraint reference '{0}' could not be resolved to a type. Register the constraint type with '{1}.{2}'. - /// - internal static string FormatRoutePattern_ConstraintReferenceNotFound(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("RoutePattern_ConstraintReferenceNotFound"), p0, p1, p2); - - /// - /// Invalid constraint type '{0}' registered as '{1}'. A constraint type must either implement '{2}', or inherit from '{3}'. - /// - internal static string RoutePattern_InvalidStringConstraintReference - { - get => GetString("RoutePattern_InvalidStringConstraintReference"); - } - - /// - /// Invalid constraint type '{0}' registered as '{1}'. A constraint type must either implement '{2}', or inherit from '{3}'. - /// - internal static string FormatRoutePattern_InvalidStringConstraintReference(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("RoutePattern_InvalidStringConstraintReference"), p0, p1, p2, p3); - - /// - /// Endpoints with endpoint name '{0}': - /// - internal static string DuplicateEndpointNameEntry - { - get => GetString("DuplicateEndpointNameEntry"); - } - - /// - /// Endpoints with endpoint name '{0}': - /// - internal static string FormatDuplicateEndpointNameEntry(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateEndpointNameEntry"), p0); - - /// - /// The following endpoints with a duplicate endpoint name were found. - /// - internal static string DuplicateEndpointNameHeader - { - get => GetString("DuplicateEndpointNameHeader"); - } - - /// - /// The following endpoints with a duplicate endpoint name were found. - /// - internal static string FormatDuplicateEndpointNameHeader() - => GetString("DuplicateEndpointNameHeader"); - - 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; - } - } -} diff --git a/src/Http/WebUtilities/src/Resources.Designer.cs b/src/Http/WebUtilities/src/Resources.Designer.cs deleted file mode 100644 index 7972e005d0..0000000000 --- a/src/Http/WebUtilities/src/Resources.Designer.cs +++ /dev/null @@ -1,89 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Microsoft.AspNetCore.WebUtilities { - using System; - using System.Reflection; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNetCore.WebUtilities.Resources", typeof(Resources).GetTypeInfo().Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to The stream must support reading.. - /// - internal static string HttpRequestStreamReader_StreamNotReadable { - get { - return ResourceManager.GetString("HttpRequestStreamReader_StreamNotReadable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The stream must support writing.. - /// - internal static string HttpResponseStreamWriter_StreamNotWritable { - get { - return ResourceManager.GetString("HttpResponseStreamWriter_StreamNotWritable", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Invalid {0}, {1} or {2} length.. - /// - internal static string WebEncoders_InvalidCountOffsetOrLength { - get { - return ResourceManager.GetString("WebEncoders_InvalidCountOffsetOrLength", resourceCulture); - } - } - } -} diff --git a/src/Identity/Core/src/Properties/Resources.Designer.cs b/src/Identity/Core/src/Properties/Resources.Designer.cs deleted file mode 100644 index afd02fc138..0000000000 --- a/src/Identity/Core/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -namespace Microsoft.AspNetCore.Identity -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Identity.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Type {0} must derive from {1}<{2}>. - /// - internal static string InvalidManagerType - { - get => GetString("InvalidManagerType"); - } - - /// - /// Type {0} must derive from {1}<{2}>. - /// - internal static string FormatInvalidManagerType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidManagerType"), p0, p1, p2); - - /// - /// The provided PasswordHasherCompatibilityMode is invalid. - /// - internal static string InvalidPasswordHasherCompatibilityMode - { - get => GetString("InvalidPasswordHasherCompatibilityMode"); - } - - /// - /// The provided PasswordHasherCompatibilityMode is invalid. - /// - internal static string FormatInvalidPasswordHasherCompatibilityMode() - => GetString("InvalidPasswordHasherCompatibilityMode"); - - /// - /// The iteration count must be a positive integer. - /// - internal static string InvalidPasswordHasherIterationCount - { - get => GetString("InvalidPasswordHasherIterationCount"); - } - - /// - /// The iteration count must be a positive integer. - /// - internal static string FormatInvalidPasswordHasherIterationCount() - => GetString("InvalidPasswordHasherIterationCount"); - - 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; - } - } -} diff --git a/src/Identity/EntityFrameworkCore/src/Properties/Resources.Designer.cs b/src/Identity/EntityFrameworkCore/src/Properties/Resources.Designer.cs deleted file mode 100644 index 7cc882ef40..0000000000 --- a/src/Identity/EntityFrameworkCore/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Identity.EntityFrameworkCore.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// [ProtectedPersonalData] only works strings by default. - /// - internal static string CanOnlyProtectStrings - { - get => GetString("CanOnlyProtectStrings"); - } - - /// - /// [ProtectedPersonalData] only works strings by default. - /// - internal static string FormatCanOnlyProtectStrings() - => GetString("CanOnlyProtectStrings"); - - /// - /// AddEntityFrameworkStores can only be called with a role that derives from IdentityRole<TKey>. - /// - internal static string NotIdentityRole - { - get => GetString("NotIdentityRole"); - } - - /// - /// AddEntityFrameworkStores can only be called with a role that derives from IdentityRole<TKey>. - /// - internal static string FormatNotIdentityRole() - => GetString("NotIdentityRole"); - - /// - /// AddEntityFrameworkStores can only be called with a user that derives from IdentityUser<TKey>. - /// - internal static string NotIdentityUser - { - get => GetString("NotIdentityUser"); - } - - /// - /// AddEntityFrameworkStores can only be called with a user that derives from IdentityUser<TKey>. - /// - internal static string FormatNotIdentityUser() - => GetString("NotIdentityUser"); - - /// - /// Role {0} does not exist. - /// - internal static string RoleNotFound - { - get => GetString("RoleNotFound"); - } - - /// - /// Role {0} does not exist. - /// - internal static string FormatRoleNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("RoleNotFound"), p0); - - /// - /// Value cannot be null or empty. - /// - internal static string ValueCannotBeNullOrEmpty - { - get => GetString("ValueCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatValueCannotBeNullOrEmpty() - => GetString("ValueCannotBeNullOrEmpty"); - - 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; - } - } -} diff --git a/src/Identity/Extensions.Core/src/Properties/Resources.Designer.cs b/src/Identity/Extensions.Core/src/Properties/Resources.Designer.cs deleted file mode 100644 index e39a1c63c8..0000000000 --- a/src/Identity/Extensions.Core/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,730 +0,0 @@ -// -namespace Microsoft.Extensions.Identity.Core -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.Extensions.Identity.Core.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Optimistic concurrency failure, object has been modified. - /// - internal static string ConcurrencyFailure - { - get => GetString("ConcurrencyFailure"); - } - - /// - /// Optimistic concurrency failure, object has been modified. - /// - internal static string FormatConcurrencyFailure() - => GetString("ConcurrencyFailure"); - - /// - /// An unknown failure has occurred. - /// - internal static string DefaultError - { - get => GetString("DefaultError"); - } - - /// - /// An unknown failure has occurred. - /// - internal static string FormatDefaultError() - => GetString("DefaultError"); - - /// - /// Email '{0}' is already taken. - /// - internal static string DuplicateEmail - { - get => GetString("DuplicateEmail"); - } - - /// - /// Email '{0}' is already taken. - /// - internal static string FormatDuplicateEmail(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateEmail"), p0); - - /// - /// Role name '{0}' is already taken. - /// - internal static string DuplicateRoleName - { - get => GetString("DuplicateRoleName"); - } - - /// - /// Role name '{0}' is already taken. - /// - internal static string FormatDuplicateRoleName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateRoleName"), p0); - - /// - /// User name '{0}' is already taken. - /// - internal static string DuplicateUserName - { - get => GetString("DuplicateUserName"); - } - - /// - /// User name '{0}' is already taken. - /// - internal static string FormatDuplicateUserName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateUserName"), p0); - - /// - /// Email '{0}' is invalid. - /// - internal static string InvalidEmail - { - get => GetString("InvalidEmail"); - } - - /// - /// Email '{0}' is invalid. - /// - internal static string FormatInvalidEmail(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidEmail"), p0); - - /// - /// Type {0} must derive from {1}<{2}>. - /// - internal static string InvalidManagerType - { - get => GetString("InvalidManagerType"); - } - - /// - /// Type {0} must derive from {1}<{2}>. - /// - internal static string FormatInvalidManagerType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidManagerType"), p0, p1, p2); - - /// - /// The provided PasswordHasherCompatibilityMode is invalid. - /// - internal static string InvalidPasswordHasherCompatibilityMode - { - get => GetString("InvalidPasswordHasherCompatibilityMode"); - } - - /// - /// The provided PasswordHasherCompatibilityMode is invalid. - /// - internal static string FormatInvalidPasswordHasherCompatibilityMode() - => GetString("InvalidPasswordHasherCompatibilityMode"); - - /// - /// The iteration count must be a positive integer. - /// - internal static string InvalidPasswordHasherIterationCount - { - get => GetString("InvalidPasswordHasherIterationCount"); - } - - /// - /// The iteration count must be a positive integer. - /// - internal static string FormatInvalidPasswordHasherIterationCount() - => GetString("InvalidPasswordHasherIterationCount"); - - /// - /// Role name '{0}' is invalid. - /// - internal static string InvalidRoleName - { - get => GetString("InvalidRoleName"); - } - - /// - /// Role name '{0}' is invalid. - /// - internal static string FormatInvalidRoleName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidRoleName"), p0); - - /// - /// Invalid token. - /// - internal static string InvalidToken - { - get => GetString("InvalidToken"); - } - - /// - /// Invalid token. - /// - internal static string FormatInvalidToken() - => GetString("InvalidToken"); - - /// - /// User name '{0}' is invalid, can only contain letters or digits. - /// - internal static string InvalidUserName - { - get => GetString("InvalidUserName"); - } - - /// - /// User name '{0}' is invalid, can only contain letters or digits. - /// - internal static string FormatInvalidUserName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidUserName"), p0); - - /// - /// A user with this login already exists. - /// - internal static string LoginAlreadyAssociated - { - get => GetString("LoginAlreadyAssociated"); - } - - /// - /// A user with this login already exists. - /// - internal static string FormatLoginAlreadyAssociated() - => GetString("LoginAlreadyAssociated"); - - /// - /// AddIdentity must be called on the service collection. - /// - internal static string MustCallAddIdentity - { - get => GetString("MustCallAddIdentity"); - } - - /// - /// AddIdentity must be called on the service collection. - /// - internal static string FormatMustCallAddIdentity() - => GetString("MustCallAddIdentity"); - - /// - /// No IUserTwoFactorTokenProvider<{0}> named '{1}' is registered. - /// - internal static string NoTokenProvider - { - get => GetString("NoTokenProvider"); - } - - /// - /// No IUserTwoFactorTokenProvider<{0}> named '{1}' is registered. - /// - internal static string FormatNoTokenProvider(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("NoTokenProvider"), p0, p1); - - /// - /// User security stamp cannot be null. - /// - internal static string NullSecurityStamp - { - get => GetString("NullSecurityStamp"); - } - - /// - /// User security stamp cannot be null. - /// - internal static string FormatNullSecurityStamp() - => GetString("NullSecurityStamp"); - - /// - /// Incorrect password. - /// - internal static string PasswordMismatch - { - get => GetString("PasswordMismatch"); - } - - /// - /// Incorrect password. - /// - internal static string FormatPasswordMismatch() - => GetString("PasswordMismatch"); - - /// - /// Passwords must have at least one digit ('0'-'9'). - /// - internal static string PasswordRequiresDigit - { - get => GetString("PasswordRequiresDigit"); - } - - /// - /// Passwords must have at least one digit ('0'-'9'). - /// - internal static string FormatPasswordRequiresDigit() - => GetString("PasswordRequiresDigit"); - - /// - /// Passwords must have at least one lowercase ('a'-'z'). - /// - internal static string PasswordRequiresLower - { - get => GetString("PasswordRequiresLower"); - } - - /// - /// Passwords must have at least one lowercase ('a'-'z'). - /// - internal static string FormatPasswordRequiresLower() - => GetString("PasswordRequiresLower"); - - /// - /// Passwords must have at least one non alphanumeric character. - /// - internal static string PasswordRequiresNonAlphanumeric - { - get => GetString("PasswordRequiresNonAlphanumeric"); - } - - /// - /// Passwords must have at least one non alphanumeric character. - /// - internal static string FormatPasswordRequiresNonAlphanumeric() - => GetString("PasswordRequiresNonAlphanumeric"); - - /// - /// Passwords must have at least one uppercase ('A'-'Z'). - /// - internal static string PasswordRequiresUpper - { - get => GetString("PasswordRequiresUpper"); - } - - /// - /// Passwords must have at least one uppercase ('A'-'Z'). - /// - internal static string FormatPasswordRequiresUpper() - => GetString("PasswordRequiresUpper"); - - /// - /// Passwords must be at least {0} characters. - /// - internal static string PasswordTooShort - { - get => GetString("PasswordTooShort"); - } - - /// - /// Passwords must be at least {0} characters. - /// - internal static string FormatPasswordTooShort(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("PasswordTooShort"), p0); - - /// - /// Role {0} does not exist. - /// - internal static string RoleNotFound - { - get => GetString("RoleNotFound"); - } - - /// - /// Role {0} does not exist. - /// - internal static string FormatRoleNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("RoleNotFound"), p0); - - /// - /// Store does not implement IQueryableRoleStore<TRole>. - /// - internal static string StoreNotIQueryableRoleStore - { - get => GetString("StoreNotIQueryableRoleStore"); - } - - /// - /// Store does not implement IQueryableRoleStore<TRole>. - /// - internal static string FormatStoreNotIQueryableRoleStore() - => GetString("StoreNotIQueryableRoleStore"); - - /// - /// Store does not implement IQueryableUserStore<TUser>. - /// - internal static string StoreNotIQueryableUserStore - { - get => GetString("StoreNotIQueryableUserStore"); - } - - /// - /// Store does not implement IQueryableUserStore<TUser>. - /// - internal static string FormatStoreNotIQueryableUserStore() - => GetString("StoreNotIQueryableUserStore"); - - /// - /// Store does not implement IRoleClaimStore<TRole>. - /// - internal static string StoreNotIRoleClaimStore - { - get => GetString("StoreNotIRoleClaimStore"); - } - - /// - /// Store does not implement IRoleClaimStore<TRole>. - /// - internal static string FormatStoreNotIRoleClaimStore() - => GetString("StoreNotIRoleClaimStore"); - - /// - /// Store does not implement IUserAuthenticationTokenStore<User>. - /// - internal static string StoreNotIUserAuthenticationTokenStore - { - get => GetString("StoreNotIUserAuthenticationTokenStore"); - } - - /// - /// Store does not implement IUserAuthenticationTokenStore<User>. - /// - internal static string FormatStoreNotIUserAuthenticationTokenStore() - => GetString("StoreNotIUserAuthenticationTokenStore"); - - /// - /// Store does not implement IUserClaimStore<TUser>. - /// - internal static string StoreNotIUserClaimStore - { - get => GetString("StoreNotIUserClaimStore"); - } - - /// - /// Store does not implement IUserClaimStore<TUser>. - /// - internal static string FormatStoreNotIUserClaimStore() - => GetString("StoreNotIUserClaimStore"); - - /// - /// Store does not implement IUserConfirmationStore<TUser>. - /// - internal static string StoreNotIUserConfirmationStore - { - get => GetString("StoreNotIUserConfirmationStore"); - } - - /// - /// Store does not implement IUserConfirmationStore<TUser>. - /// - internal static string FormatStoreNotIUserConfirmationStore() - => GetString("StoreNotIUserConfirmationStore"); - - /// - /// Store does not implement IUserEmailStore<TUser>. - /// - internal static string StoreNotIUserEmailStore - { - get => GetString("StoreNotIUserEmailStore"); - } - - /// - /// Store does not implement IUserEmailStore<TUser>. - /// - internal static string FormatStoreNotIUserEmailStore() - => GetString("StoreNotIUserEmailStore"); - - /// - /// Store does not implement IUserLockoutStore<TUser>. - /// - internal static string StoreNotIUserLockoutStore - { - get => GetString("StoreNotIUserLockoutStore"); - } - - /// - /// Store does not implement IUserLockoutStore<TUser>. - /// - internal static string FormatStoreNotIUserLockoutStore() - => GetString("StoreNotIUserLockoutStore"); - - /// - /// Store does not implement IUserLoginStore<TUser>. - /// - internal static string StoreNotIUserLoginStore - { - get => GetString("StoreNotIUserLoginStore"); - } - - /// - /// Store does not implement IUserLoginStore<TUser>. - /// - internal static string FormatStoreNotIUserLoginStore() - => GetString("StoreNotIUserLoginStore"); - - /// - /// Store does not implement IUserPasswordStore<TUser>. - /// - internal static string StoreNotIUserPasswordStore - { - get => GetString("StoreNotIUserPasswordStore"); - } - - /// - /// Store does not implement IUserPasswordStore<TUser>. - /// - internal static string FormatStoreNotIUserPasswordStore() - => GetString("StoreNotIUserPasswordStore"); - - /// - /// Store does not implement IUserPhoneNumberStore<TUser>. - /// - internal static string StoreNotIUserPhoneNumberStore - { - get => GetString("StoreNotIUserPhoneNumberStore"); - } - - /// - /// Store does not implement IUserPhoneNumberStore<TUser>. - /// - internal static string FormatStoreNotIUserPhoneNumberStore() - => GetString("StoreNotIUserPhoneNumberStore"); - - /// - /// Store does not implement IUserRoleStore<TUser>. - /// - internal static string StoreNotIUserRoleStore - { - get => GetString("StoreNotIUserRoleStore"); - } - - /// - /// Store does not implement IUserRoleStore<TUser>. - /// - internal static string FormatStoreNotIUserRoleStore() - => GetString("StoreNotIUserRoleStore"); - - /// - /// Store does not implement IUserSecurityStampStore<TUser>. - /// - internal static string StoreNotIUserSecurityStampStore - { - get => GetString("StoreNotIUserSecurityStampStore"); - } - - /// - /// Store does not implement IUserSecurityStampStore<TUser>. - /// - internal static string FormatStoreNotIUserSecurityStampStore() - => GetString("StoreNotIUserSecurityStampStore"); - - /// - /// Store does not implement IUserAuthenticatorKeyStore<User>. - /// - internal static string StoreNotIUserAuthenticatorKeyStore - { - get => GetString("StoreNotIUserAuthenticatorKeyStore"); - } - - /// - /// Store does not implement IUserAuthenticatorKeyStore<User>. - /// - internal static string FormatStoreNotIUserAuthenticatorKeyStore() - => GetString("StoreNotIUserAuthenticatorKeyStore"); - - /// - /// Store does not implement IUserTwoFactorStore<TUser>. - /// - internal static string StoreNotIUserTwoFactorStore - { - get => GetString("StoreNotIUserTwoFactorStore"); - } - - /// - /// Store does not implement IUserTwoFactorStore<TUser>. - /// - internal static string FormatStoreNotIUserTwoFactorStore() - => GetString("StoreNotIUserTwoFactorStore"); - - /// - /// Recovery code redemption failed. - /// - internal static string RecoveryCodeRedemptionFailed - { - get => GetString("RecoveryCodeRedemptionFailed"); - } - - /// - /// Recovery code redemption failed. - /// - internal static string FormatRecoveryCodeRedemptionFailed() - => GetString("RecoveryCodeRedemptionFailed"); - - /// - /// User already has a password set. - /// - internal static string UserAlreadyHasPassword - { - get => GetString("UserAlreadyHasPassword"); - } - - /// - /// User already has a password set. - /// - internal static string FormatUserAlreadyHasPassword() - => GetString("UserAlreadyHasPassword"); - - /// - /// User already in role '{0}'. - /// - internal static string UserAlreadyInRole - { - get => GetString("UserAlreadyInRole"); - } - - /// - /// User already in role '{0}'. - /// - internal static string FormatUserAlreadyInRole(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UserAlreadyInRole"), p0); - - /// - /// User is locked out. - /// - internal static string UserLockedOut - { - get => GetString("UserLockedOut"); - } - - /// - /// User is locked out. - /// - internal static string FormatUserLockedOut() - => GetString("UserLockedOut"); - - /// - /// Lockout is not enabled for this user. - /// - internal static string UserLockoutNotEnabled - { - get => GetString("UserLockoutNotEnabled"); - } - - /// - /// Lockout is not enabled for this user. - /// - internal static string FormatUserLockoutNotEnabled() - => GetString("UserLockoutNotEnabled"); - - /// - /// User {0} does not exist. - /// - internal static string UserNameNotFound - { - get => GetString("UserNameNotFound"); - } - - /// - /// User {0} does not exist. - /// - internal static string FormatUserNameNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UserNameNotFound"), p0); - - /// - /// User is not in role '{0}'. - /// - internal static string UserNotInRole - { - get => GetString("UserNotInRole"); - } - - /// - /// User is not in role '{0}'. - /// - internal static string FormatUserNotInRole(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UserNotInRole"), p0); - - /// - /// Store does not implement IUserTwoFactorRecoveryCodeStore<User>. - /// - internal static string StoreNotIUserTwoFactorRecoveryCodeStore - { - get => GetString("StoreNotIUserTwoFactorRecoveryCodeStore"); - } - - /// - /// Store does not implement IUserTwoFactorRecoveryCodeStore<User>. - /// - internal static string FormatStoreNotIUserTwoFactorRecoveryCodeStore() - => GetString("StoreNotIUserTwoFactorRecoveryCodeStore"); - - /// - /// Passwords must use at least {0} different characters. - /// - internal static string PasswordRequiresUniqueChars - { - get => GetString("PasswordRequiresUniqueChars"); - } - - /// - /// Passwords must use at least {0} different characters. - /// - internal static string FormatPasswordRequiresUniqueChars(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("PasswordRequiresUniqueChars"), p0); - - /// - /// No RoleType was specified, try AddRoles<TRole>(). - /// - internal static string NoRoleType - { - get => GetString("NoRoleType"); - } - - /// - /// No RoleType was specified, try AddRoles<TRole>(). - /// - internal static string FormatNoRoleType() - => GetString("NoRoleType"); - - /// - /// Store does not implement IProtectedUserStore<TUser> which is required when ProtectPersonalData = true. - /// - internal static string StoreNotIProtectedUserStore - { - get => GetString("StoreNotIProtectedUserStore"); - } - - /// - /// Store does not implement IProtectedUserStore<TUser> which is required when ProtectPersonalData = true. - /// - internal static string FormatStoreNotIProtectedUserStore() - => GetString("StoreNotIProtectedUserStore"); - - /// - /// No IPersonalDataProtector service was registered, this is required when ProtectPersonalData = true. - /// - internal static string NoPersonalDataProtector - { - get => GetString("NoPersonalDataProtector"); - } - - /// - /// No IPersonalDataProtector service was registered, this is required when ProtectPersonalData = true. - /// - internal static string FormatNoPersonalDataProtector() - => GetString("NoPersonalDataProtector"); - - 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; - } - } -} diff --git a/src/Middleware/CORS/src/Properties/Resources.Designer.cs b/src/Middleware/CORS/src/Properties/Resources.Designer.cs deleted file mode 100644 index e91bc3b689..0000000000 --- a/src/Middleware/CORS/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -namespace Microsoft.AspNetCore.Cors -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Cors.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. Configure the CORS policy by listing individual origins if credentials needs to be supported. - /// - internal static string InsecureConfiguration - { - get => GetString("InsecureConfiguration"); - } - - /// - /// The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. Configure the CORS policy by listing individual origins if credentials needs to be supported. - /// - internal static string FormatInsecureConfiguration() - => GetString("InsecureConfiguration"); - - /// - /// PreflightMaxAge must be greater than or equal to 0. - /// - internal static string PreflightMaxAgeOutOfRange - { - get => GetString("PreflightMaxAgeOutOfRange"); - } - - /// - /// PreflightMaxAge must be greater than or equal to 0. - /// - internal static string FormatPreflightMaxAgeOutOfRange() - => GetString("PreflightMaxAgeOutOfRange"); - - 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; - } - } -} diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/src/Properties/Strings.Designer.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/src/Properties/Strings.Designer.cs deleted file mode 100644 index c27dad8871..0000000000 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/src/Properties/Strings.Designer.cs +++ /dev/null @@ -1,408 +0,0 @@ -// -namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Strings - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Strings", typeof(Strings).GetTypeInfo().Assembly); - - /// - /// The context type '{0}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<>() inside the UseServices(...) call in your application startup code. Skipping display of the database error page. - /// - internal static string DatabaseErrorPageMiddleware_ContextNotRegistered - { - get => GetString("DatabaseErrorPageMiddleware_ContextNotRegistered"); - } - - /// - /// The context type '{0}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<>() inside the UseServices(...) call in your application startup code. Skipping display of the database error page. - /// - internal static string FormatDatabaseErrorPageMiddleware_ContextNotRegistered(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPageMiddleware_ContextNotRegistered"), p0); - - /// - /// An exception occurred while calculating the database error page content. Skipping display of the database error page. - /// - internal static string DatabaseErrorPageMiddleware_Exception - { - get => GetString("DatabaseErrorPageMiddleware_Exception"); - } - - /// - /// An exception occurred while calculating the database error page content. Skipping display of the database error page. - /// - internal static string FormatDatabaseErrorPageMiddleware_Exception() - => GetString("DatabaseErrorPageMiddleware_Exception"); - - /// - /// > dotnet ef migrations add [migration name] - /// - internal static string DatabaseErrorPage_AddMigrationCommandCLI - { - get => GetString("DatabaseErrorPage_AddMigrationCommandCLI"); - } - - /// - /// > dotnet ef migrations add [migration name] - /// - internal static string FormatDatabaseErrorPage_AddMigrationCommandCLI() - => GetString("DatabaseErrorPage_AddMigrationCommandCLI"); - - /// - /// Apply Migrations - /// - internal static string DatabaseErrorPage_ApplyMigrationsButton - { - get => GetString("DatabaseErrorPage_ApplyMigrationsButton"); - } - - /// - /// Apply Migrations - /// - internal static string FormatDatabaseErrorPage_ApplyMigrationsButton() - => GetString("DatabaseErrorPage_ApplyMigrationsButton"); - - /// - /// Migrations Applied - /// - internal static string DatabaseErrorPage_ApplyMigrationsButtonDone - { - get => GetString("DatabaseErrorPage_ApplyMigrationsButtonDone"); - } - - /// - /// Migrations Applied - /// - internal static string FormatDatabaseErrorPage_ApplyMigrationsButtonDone() - => GetString("DatabaseErrorPage_ApplyMigrationsButtonDone"); - - /// - /// Applying Migrations... - /// - internal static string DatabaseErrorPage_ApplyMigrationsButtonRunning - { - get => GetString("DatabaseErrorPage_ApplyMigrationsButtonRunning"); - } - - /// - /// Applying Migrations... - /// - internal static string FormatDatabaseErrorPage_ApplyMigrationsButtonRunning() - => GetString("DatabaseErrorPage_ApplyMigrationsButtonRunning"); - - /// - /// An error occurred applying migrations, try applying them from the command line - /// - internal static string DatabaseErrorPage_ApplyMigrationsFailed - { - get => GetString("DatabaseErrorPage_ApplyMigrationsFailed"); - } - - /// - /// An error occurred applying migrations, try applying them from the command line - /// - internal static string FormatDatabaseErrorPage_ApplyMigrationsFailed() - => GetString("DatabaseErrorPage_ApplyMigrationsFailed"); - - /// - /// In Visual Studio, you can use the Package Manager Console to apply pending migrations to the database: - /// - internal static string DatabaseErrorPage_HowToApplyFromPMC - { - get => GetString("DatabaseErrorPage_HowToApplyFromPMC"); - } - - /// - /// In Visual Studio, you can use the Package Manager Console to apply pending migrations to the database: - /// - internal static string FormatDatabaseErrorPage_HowToApplyFromPMC() - => GetString("DatabaseErrorPage_HowToApplyFromPMC"); - - /// - /// Try refreshing the page - /// - internal static string DatabaseErrorPage_MigrationsAppliedRefresh - { - get => GetString("DatabaseErrorPage_MigrationsAppliedRefresh"); - } - - /// - /// Try refreshing the page - /// - internal static string FormatDatabaseErrorPage_MigrationsAppliedRefresh() - => GetString("DatabaseErrorPage_MigrationsAppliedRefresh"); - - /// - /// In Visual Studio, use the Package Manager Console to scaffold a new migration and apply it to the database: - /// - internal static string DatabaseErrorPage_NoDbOrMigrationsInfoPMC - { - get => GetString("DatabaseErrorPage_NoDbOrMigrationsInfoPMC"); - } - - /// - /// In Visual Studio, use the Package Manager Console to scaffold a new migration and apply it to the database: - /// - internal static string FormatDatabaseErrorPage_NoDbOrMigrationsInfoPMC() - => GetString("DatabaseErrorPage_NoDbOrMigrationsInfoPMC"); - - /// - /// Use migrations to create the database for {0} - /// - internal static string DatabaseErrorPage_NoDbOrMigrationsTitle - { - get => GetString("DatabaseErrorPage_NoDbOrMigrationsTitle"); - } - - /// - /// Use migrations to create the database for {0} - /// - internal static string FormatDatabaseErrorPage_NoDbOrMigrationsTitle(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_NoDbOrMigrationsTitle"), p0); - - /// - /// In Visual Studio, use the Package Manager Console to scaffold a new migration for these changes and apply them to the database: - /// - internal static string DatabaseErrorPage_PendingChangesInfoPMC - { - get => GetString("DatabaseErrorPage_PendingChangesInfoPMC"); - } - - /// - /// In Visual Studio, use the Package Manager Console to scaffold a new migration for these changes and apply them to the database: - /// - internal static string FormatDatabaseErrorPage_PendingChangesInfoPMC() - => GetString("DatabaseErrorPage_PendingChangesInfoPMC"); - - /// - /// There are pending model changes for {0} - /// - internal static string DatabaseErrorPage_PendingChangesTitle - { - get => GetString("DatabaseErrorPage_PendingChangesTitle"); - } - - /// - /// There are pending model changes for {0} - /// - internal static string FormatDatabaseErrorPage_PendingChangesTitle(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_PendingChangesTitle"), p0); - - /// - /// There are migrations for {0} that have not been applied to the database - /// - internal static string DatabaseErrorPage_PendingMigrationsInfo - { - get => GetString("DatabaseErrorPage_PendingMigrationsInfo"); - } - - /// - /// There are migrations for {0} that have not been applied to the database - /// - internal static string FormatDatabaseErrorPage_PendingMigrationsInfo(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_PendingMigrationsInfo"), p0); - - /// - /// Applying existing migrations for {0} may resolve this issue - /// - internal static string DatabaseErrorPage_PendingMigrationsTitle - { - get => GetString("DatabaseErrorPage_PendingMigrationsTitle"); - } - - /// - /// Applying existing migrations for {0} may resolve this issue - /// - internal static string FormatDatabaseErrorPage_PendingMigrationsTitle(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_PendingMigrationsTitle"), p0); - - /// - /// > dotnet ef database update - /// - internal static string DatabaseErrorPage_ApplyMigrationsCommandCLI - { - get => GetString("DatabaseErrorPage_ApplyMigrationsCommandCLI"); - } - - /// - /// > dotnet ef database update - /// - internal static string FormatDatabaseErrorPage_ApplyMigrationsCommandCLI() - => GetString("DatabaseErrorPage_ApplyMigrationsCommandCLI"); - - /// - /// The context type '{0}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<{0}>() inside the UseServices(...) call in your application startup code. - /// - internal static string MigrationsEndPointMiddleware_ContextNotRegistered - { - get => GetString("MigrationsEndPointMiddleware_ContextNotRegistered"); - } - - /// - /// The context type '{0}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<{0}>() inside the UseServices(...) call in your application startup code. - /// - internal static string FormatMigrationsEndPointMiddleware_ContextNotRegistered(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_ContextNotRegistered"), p0); - - /// - /// An error occurred while applying the migrations for '{0}'. See InnerException for details. - /// - internal static string MigrationsEndPointMiddleware_Exception - { - get => GetString("MigrationsEndPointMiddleware_Exception"); - } - - /// - /// An error occurred while applying the migrations for '{0}'. See InnerException for details. - /// - internal static string FormatMigrationsEndPointMiddleware_Exception(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_Exception"), p0); - - /// - /// The context type '{0}' could not be loaded. Ensure this is the correct type name for the context you are trying to apply migrations for. - /// - internal static string MigrationsEndPointMiddleware_InvalidContextType - { - get => GetString("MigrationsEndPointMiddleware_InvalidContextType"); - } - - /// - /// The context type '{0}' could not be loaded. Ensure this is the correct type name for the context you are trying to apply migrations for. - /// - internal static string FormatMigrationsEndPointMiddleware_InvalidContextType(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_InvalidContextType"), p0); - - /// - /// No context type was specified. Ensure the form data from the request includes a 'context' value, specifying the context type name to apply migrations for. - /// - internal static string MigrationsEndPointMiddleware_NoContextType - { - get => GetString("MigrationsEndPointMiddleware_NoContextType"); - } - - /// - /// No context type was specified. Ensure the form data from the request includes a contextTypeName value, specifying the context to apply migrations for. - /// - internal static string FormatMigrationsEndPointMiddleware_NoContextType() - => GetString("MigrationsEndPointMiddleware_NoContextType"); - - /// - /// A database operation failed while processing the request. - /// - internal static string DatabaseErrorPage_Title - { - get => GetString("DatabaseErrorPage_Title"); - } - - /// - /// A database operation failed while processing the request. - /// - internal static string FormatDatabaseErrorPage_Title() - => GetString("DatabaseErrorPage_Title"); - - /// - /// Entity Framework did not record any exceptions due to failed database operations. This means the current exception is not a failed Entity Framework database operation, or the current exception occurred from a DbContext that was not obtained from request services. - /// - internal static string DatabaseErrorPage_NoRecordedException - { - get => GetString("DatabaseErrorPage_NoRecordedException"); - } - - /// - /// Entity Framework did not record any exceptions due to failed database operations. This means the current exception is not a failed Entity Framework database operation, or the current exception occurred from a DbContext that was not obtained from request services. - /// - internal static string FormatDatabaseErrorPage_NoRecordedException() - => GetString("DatabaseErrorPage_NoRecordedException"); - - /// - /// PM> Add-Migration [migration name] - /// - internal static string DatabaseErrorPage_AddMigrationCommandPMC - { - get => GetString("DatabaseErrorPage_AddMigrationCommandPMC"); - } - - /// - /// PM> Add-Migration [migration name] - /// - internal static string FormatDatabaseErrorPage_AddMigrationCommandPMC() - => GetString("DatabaseErrorPage_AddMigrationCommandPMC"); - - /// - /// PM> Update-Database - /// - internal static string DatabaseErrorPage_ApplyMigrationsCommandPMC - { - get => GetString("DatabaseErrorPage_ApplyMigrationsCommandPMC"); - } - - /// - /// PM> Update-Database - /// - internal static string FormatDatabaseErrorPage_ApplyMigrationsCommandPMC() - => GetString("DatabaseErrorPage_ApplyMigrationsCommandPMC"); - - /// - /// Alternatively, you can scaffold a new migration and apply it from a command prompt at your project directory: - /// - internal static string DatabaseErrorPage_NoDbOrMigrationsInfoCLI - { - get => GetString("DatabaseErrorPage_NoDbOrMigrationsInfoCLI"); - } - - /// - /// Alternatively, you can scaffold a new migration and apply it from a command prompt at your project directory: - /// - internal static string FormatDatabaseErrorPage_NoDbOrMigrationsInfoCLI() - => GetString("DatabaseErrorPage_NoDbOrMigrationsInfoCLI"); - - /// - /// Alternatively, you can scaffold a new migration and apply it from a command prompt at your project directory: - /// - internal static string DatabaseErrorPage_PendingChangesInfoCLI - { - get => GetString("DatabaseErrorPage_PendingChangesInfoCLI"); - } - - /// - /// Alternatively, you can scaffold a new migration and apply it from a command prompt at your project directory: - /// - internal static string FormatDatabaseErrorPage_PendingChangesInfoCLI() - => GetString("DatabaseErrorPage_PendingChangesInfoCLI"); - - /// - /// Alternatively, you can apply pending migrations from a command prompt at your project directory: - /// - internal static string DatabaseErrorPage_HowToApplyFromCLI - { - get => GetString("DatabaseErrorPage_HowToApplyFromCLI"); - } - - /// - /// Alternatively, you can apply pending migrations from a command prompt at your project directory: - /// - internal static string FormatDatabaseErrorPage_HowToApplyFromCLI() - => GetString("DatabaseErrorPage_HowToApplyFromCLI"); - - 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; - } - } -} diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/DatabaseErrorPageMiddlewareTest.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/DatabaseErrorPageMiddlewareTest.cs index 04a7772f89..71412914ef 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/DatabaseErrorPageMiddlewareTest.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/DatabaseErrorPageMiddlewareTest.cs @@ -120,8 +120,8 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); var content = await response.Content.ReadAsStringAsync(); Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_NoDbOrMigrationsTitle", typeof(BloggingContext).Name), content); - Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content); - Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content); + Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content); + Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content); } } @@ -179,11 +179,11 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests var content = await response.Content.ReadAsStringAsync(); Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_PendingMigrationsTitle", typeof(BloggingContextWithMigrations).Name), content); - Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content); + Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content); Assert.Contains("
  • 111111111111111_MigrationOne
  • ", content); Assert.Contains("
  • 222222222222222_MigrationTwo
  • ", content); - Assert.DoesNotContain(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content); + Assert.DoesNotContain(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content); } } @@ -215,10 +215,10 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests var content = await response.Content.ReadAsStringAsync(); Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_PendingChangesTitle", typeof(BloggingContextWithPendingModelChanges).Name), content); - Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_AddMigrationCommandCLI").Replace(">", ">"), content); - Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content); - Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_ApplyMigrationsCommandCLI").Replace(">", ">"), content); - Assert.Contains(StringsHelpers.GetResourceString("FormatDatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content); + Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandCLI").Replace(">", ">"), content); + Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content); + Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandCLI").Replace(">", ">"), content); + Assert.Contains(StringsHelpers.GetResourceString("DatabaseErrorPage_ApplyMigrationsCommandPMC").Replace(">", ">"), content); } } @@ -405,7 +405,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests } Assert.Contains(logProvider.Logger.Messages.ToList(), m => - m.StartsWith(StringsHelpers.GetResourceString("FormatDatabaseErrorPageMiddleware_Exception"))); + m.StartsWith(StringsHelpers.GetResourceString("DatabaseErrorPageMiddleware_Exception"))); } } diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/StringHelpers.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/StringHelpers.cs index 6b4263791a..e3ffed0fb2 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/StringHelpers.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/Helpers/StringHelpers.cs @@ -12,8 +12,14 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.FunctionalTests.H public static string GetResourceString(string stringName, params object[] parameters) { var strings = typeof(DatabaseErrorPageMiddleware).GetTypeInfo().Assembly.GetType("Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Strings").GetTypeInfo(); - var method = strings.GetDeclaredMethods(stringName).Single(); - return (string)method.Invoke(null, parameters); + + if (parameters.Length > 0) + { + var method = strings.GetDeclaredMethods(stringName).Single(); + return (string)method.Invoke(null, parameters); + } + + return (string)strings.GetDeclaredProperty(stringName).GetValue(null); } } -} \ No newline at end of file +} diff --git a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/MigrationsEndPointMiddlewareTest.cs b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/MigrationsEndPointMiddlewareTest.cs index d4d883cc11..522fec2f90 100644 --- a/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/MigrationsEndPointMiddlewareTest.cs +++ b/src/Middleware/Diagnostics.EntityFrameworkCore/test/FunctionalTests/MigrationsEndPointMiddlewareTest.cs @@ -141,7 +141,7 @@ namespace Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.Tests var content = await response.Content.ReadAsStringAsync(); Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); - Assert.StartsWith(StringsHelpers.GetResourceString("FormatMigrationsEndPointMiddleware_NoContextType"), content); + Assert.StartsWith(StringsHelpers.GetResourceString("MigrationsEndPointMiddleware_NoContextType"), content); Assert.True(content.Length > 512); } diff --git a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs index eece3f0135..112685a9e5 100644 --- a/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs +++ b/src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerMiddleware.cs @@ -36,7 +36,7 @@ namespace Microsoft.AspNetCore.Diagnostics { if (_options.ExceptionHandlingPath == null) { - throw new InvalidOperationException(Resources.FormatExceptionHandlerOptions_NotConfiguredCorrectly()); + throw new InvalidOperationException(Resources.ExceptionHandlerOptions_NotConfiguredCorrectly); } else { diff --git a/src/Middleware/Diagnostics/src/Properties/Resources.Designer.cs b/src/Middleware/Diagnostics/src/Properties/Resources.Designer.cs deleted file mode 100644 index 5895c48b74..0000000000 --- a/src/Middleware/Diagnostics/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,758 +0,0 @@ -// -namespace Microsoft.AspNetCore.Diagnostics -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Diagnostics.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// You are seeing this page because DiagnosticsPageMiddleware was added to your web application. - /// - internal static string DiagnosticsPageHtml_Information - { - get => GetString("DiagnosticsPageHtml_Information"); - } - - /// - /// You are seeing this page because DiagnosticsPageMiddleware was added to your web application. - /// - internal static string FormatDiagnosticsPageHtml_Information() - => GetString("DiagnosticsPageHtml_Information"); - - /// - /// Test Error Message - /// - internal static string DiagnosticsPageHtml_TestErrorMessage - { - get => GetString("DiagnosticsPageHtml_TestErrorMessage"); - } - - /// - /// Test Error Message - /// - internal static string FormatDiagnosticsPageHtml_TestErrorMessage() - => GetString("DiagnosticsPageHtml_TestErrorMessage"); - - /// - /// Test Error Page - /// - internal static string DiagnosticsPageHtml_TestErrorSection - { - get => GetString("DiagnosticsPageHtml_TestErrorSection"); - } - - /// - /// Test Error Page - /// - internal static string FormatDiagnosticsPageHtml_TestErrorSection() - => GetString("DiagnosticsPageHtml_TestErrorSection"); - - /// - /// Diagnostics Page - /// - internal static string DiagnosticsPageHtml_Title - { - get => GetString("DiagnosticsPageHtml_Title"); - } - - /// - /// Diagnostics Page - /// - internal static string FormatDiagnosticsPageHtml_Title() - => GetString("DiagnosticsPageHtml_Title"); - - /// - /// Cookies - /// - internal static string ErrorPageHtml_CookiesButton - { - get => GetString("ErrorPageHtml_CookiesButton"); - } - - /// - /// Cookies - /// - internal static string FormatErrorPageHtml_CookiesButton() - => GetString("ErrorPageHtml_CookiesButton"); - - /// - /// Headers - /// - internal static string ErrorPageHtml_HeadersButton - { - get => GetString("ErrorPageHtml_HeadersButton"); - } - - /// - /// Headers - /// - internal static string FormatErrorPageHtml_HeadersButton() - => GetString("ErrorPageHtml_HeadersButton"); - - /// - /// No cookie data. - /// - internal static string ErrorPageHtml_NoCookieData - { - get => GetString("ErrorPageHtml_NoCookieData"); - } - - /// - /// No cookie data. - /// - internal static string FormatErrorPageHtml_NoCookieData() - => GetString("ErrorPageHtml_NoCookieData"); - - /// - /// No header data. - /// - internal static string ErrorPageHtml_NoHeaderData - { - get => GetString("ErrorPageHtml_NoHeaderData"); - } - - /// - /// No header data. - /// - internal static string FormatErrorPageHtml_NoHeaderData() - => GetString("ErrorPageHtml_NoHeaderData"); - - /// - /// No query string data. - /// - internal static string ErrorPageHtml_NoQueryStringData - { - get => GetString("ErrorPageHtml_NoQueryStringData"); - } - - /// - /// No query string data. - /// - internal static string FormatErrorPageHtml_NoQueryStringData() - => GetString("ErrorPageHtml_NoQueryStringData"); - - /// - /// Query - /// - internal static string ErrorPageHtml_QueryButton - { - get => GetString("ErrorPageHtml_QueryButton"); - } - - /// - /// Query - /// - internal static string FormatErrorPageHtml_QueryButton() - => GetString("ErrorPageHtml_QueryButton"); - - /// - /// Stack - /// - internal static string ErrorPageHtml_StackButton - { - get => GetString("ErrorPageHtml_StackButton"); - } - - /// - /// Stack - /// - internal static string FormatErrorPageHtml_StackButton() - => GetString("ErrorPageHtml_StackButton"); - - /// - /// Internal Server Error - /// - internal static string ErrorPageHtml_Title - { - get => GetString("ErrorPageHtml_Title"); - } - - /// - /// Internal Server Error - /// - internal static string FormatErrorPageHtml_Title() - => GetString("ErrorPageHtml_Title"); - - /// - /// An unhandled exception occurred while processing the request. - /// - internal static string ErrorPageHtml_UnhandledException - { - get => GetString("ErrorPageHtml_UnhandledException"); - } - - /// - /// An unhandled exception occurred while processing the request. - /// - internal static string FormatErrorPageHtml_UnhandledException() - => GetString("ErrorPageHtml_UnhandledException"); - - /// - /// Unknown location - /// - internal static string ErrorPageHtml_UnknownLocation - { - get => GetString("ErrorPageHtml_UnknownLocation"); - } - - /// - /// Unknown location - /// - internal static string FormatErrorPageHtml_UnknownLocation() - => GetString("ErrorPageHtml_UnknownLocation"); - - /// - /// Value - /// - internal static string ErrorPageHtml_ValueColumn - { - get => GetString("ErrorPageHtml_ValueColumn"); - } - - /// - /// Value - /// - internal static string FormatErrorPageHtml_ValueColumn() - => GetString("ErrorPageHtml_ValueColumn"); - - /// - /// Variable - /// - internal static string ErrorPageHtml_VariableColumn - { - get => GetString("ErrorPageHtml_VariableColumn"); - } - - /// - /// Variable - /// - internal static string FormatErrorPageHtml_VariableColumn() - => GetString("ErrorPageHtml_VariableColumn"); - - /// - /// The path must start with a '/'. - /// - internal static string Exception_PathMustStartWithSlash - { - get => GetString("Exception_PathMustStartWithSlash"); - } - - /// - /// The path must start with a '/'. - /// - internal static string FormatException_PathMustStartWithSlash() - => GetString("Exception_PathMustStartWithSlash"); - - /// - /// Name - /// - internal static string RuntimeInfoPage_PackageNameColumnName - { - get => GetString("RuntimeInfoPage_PackageNameColumnName"); - } - - /// - /// Name - /// - internal static string FormatRuntimeInfoPage_PackageNameColumnName() - => GetString("RuntimeInfoPage_PackageNameColumnName"); - - /// - /// Path - /// - internal static string RuntimeInfoPage_PackagePathColumnName - { - get => GetString("RuntimeInfoPage_PackagePathColumnName"); - } - - /// - /// Path - /// - internal static string FormatRuntimeInfoPage_PackagePathColumnName() - => GetString("RuntimeInfoPage_PackagePathColumnName"); - - /// - /// Packages: - /// - internal static string RuntimeInfoPage_Packages - { - get => GetString("RuntimeInfoPage_Packages"); - } - - /// - /// Packages: - /// - internal static string FormatRuntimeInfoPage_Packages() - => GetString("RuntimeInfoPage_Packages"); - - /// - /// Could not retrieve the list of loaded packages. - /// - internal static string RuntimeInfoPage_PackagesFail - { - get => GetString("RuntimeInfoPage_PackagesFail"); - } - - /// - /// Could not retrieve the list of loaded packages. - /// - internal static string FormatRuntimeInfoPage_PackagesFail() - => GetString("RuntimeInfoPage_PackagesFail"); - - /// - /// Version - /// - internal static string RuntimeInfoPage_PackageVersionColumnName - { - get => GetString("RuntimeInfoPage_PackageVersionColumnName"); - } - - /// - /// Version - /// - internal static string FormatRuntimeInfoPage_PackageVersionColumnName() - => GetString("RuntimeInfoPage_PackageVersionColumnName"); - - /// - /// Runtime Version: - /// - internal static string RuntimeInfoPage_RuntimeVersion - { - get => GetString("RuntimeInfoPage_RuntimeVersion"); - } - - /// - /// Runtime Version: - /// - internal static string FormatRuntimeInfoPage_RuntimeVersion() - => GetString("RuntimeInfoPage_RuntimeVersion"); - - /// - /// Could not determine the runtime version. - /// - internal static string RuntimeInfoPage_RuntimeVersionFail - { - get => GetString("RuntimeInfoPage_RuntimeVersionFail"); - } - - /// - /// Could not determine the runtime version. - /// - internal static string FormatRuntimeInfoPage_RuntimeVersionFail() - => GetString("RuntimeInfoPage_RuntimeVersionFail"); - - /// - /// Runtime Information - /// - internal static string RuntimeInfoPage_Title - { - get => GetString("RuntimeInfoPage_Title"); - } - - /// - /// Runtime Information - /// - internal static string FormatRuntimeInfoPage_Title() - => GetString("RuntimeInfoPage_Title"); - - /// - /// Welcome - /// - internal static string WelcomeHeader - { - get => GetString("WelcomeHeader"); - } - - /// - /// Welcome - /// - internal static string FormatWelcomeHeader() - => GetString("WelcomeHeader"); - - /// - /// Learn more about the Microsoft ASP.NET Core components - /// - internal static string WelcomeLearnMicrosoftAspNet - { - get => GetString("WelcomeLearnMicrosoftAspNet"); - } - - /// - /// Learn more about the Microsoft ASP.NET Core components - /// - internal static string FormatWelcomeLearnMicrosoftAspNet() - => GetString("WelcomeLearnMicrosoftAspNet"); - - /// - /// Browser - /// - internal static string WelcomePageImageText_Browser - { - get => GetString("WelcomePageImageText_Browser"); - } - - /// - /// Browser - /// - internal static string FormatWelcomePageImageText_Browser() - => GetString("WelcomePageImageText_Browser"); - - /// - /// Learn More - /// - internal static string WelcomePageImageText_LearnMore - { - get => GetString("WelcomePageImageText_LearnMore"); - } - - /// - /// Learn More - /// - internal static string FormatWelcomePageImageText_LearnMore() - => GetString("WelcomePageImageText_LearnMore"); - - /// - /// Light Bulb - /// - internal static string WelcomePageImageText_LightBulb - { - get => GetString("WelcomePageImageText_LightBulb"); - } - - /// - /// Light Bulb - /// - internal static string FormatWelcomePageImageText_LightBulb() - => GetString("WelcomePageImageText_LightBulb"); - - /// - /// Skyline - /// - internal static string WelcomePageImageText_Skyline - { - get => GetString("WelcomePageImageText_Skyline"); - } - - /// - /// Skyline - /// - internal static string FormatWelcomePageImageText_Skyline() - => GetString("WelcomePageImageText_Skyline"); - - /// - /// Your ASP.NET Core application has been successfully started - /// - internal static string WelcomeStarted - { - get => GetString("WelcomeStarted"); - } - - /// - /// Your ASP.NET Core application has been successfully started - /// - internal static string FormatWelcomeStarted() - => GetString("WelcomeStarted"); - - /// - /// Your ASP.NET Core application has been successfully started. - /// - internal static string WelcomeTitle - { - get => GetString("WelcomeTitle"); - } - - /// - /// Your ASP.NET Core application has been successfully started. - /// - internal static string FormatWelcomeTitle() - => GetString("WelcomeTitle"); - - /// - /// An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately. - /// - internal static string ErrorPageHtml_CompilationException - { - get => GetString("ErrorPageHtml_CompilationException"); - } - - /// - /// An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately. - /// - internal static string FormatErrorPageHtml_CompilationException() - => GetString("ErrorPageHtml_CompilationException"); - - /// - /// Operating System: - /// - internal static string RuntimeInfoPage_OperatingSystem - { - get => GetString("RuntimeInfoPage_OperatingSystem"); - } - - /// - /// Operating System: - /// - internal static string FormatRuntimeInfoPage_OperatingSystem() - => GetString("RuntimeInfoPage_OperatingSystem"); - - /// - /// Runtime Architecture: - /// - internal static string RuntimeInfoPage_RuntimeArchitecture - { - get => GetString("RuntimeInfoPage_RuntimeArchitecture"); - } - - /// - /// Runtime Architecture: - /// - internal static string FormatRuntimeInfoPage_RuntimeArchitecture() - => GetString("RuntimeInfoPage_RuntimeArchitecture"); - - /// - /// Runtime Type: - /// - internal static string RuntimeInfoPage_RuntimeType - { - get => GetString("RuntimeInfoPage_RuntimeType"); - } - - /// - /// Runtime Type: - /// - internal static string FormatRuntimeInfoPage_RuntimeType() - => GetString("RuntimeInfoPage_RuntimeType"); - - /// - /// Could not determine the operating system. - /// - internal static string RuntimeInfoPage_OperatingSystemFail - { - get => GetString("RuntimeInfoPage_OperatingSystemFail"); - } - - /// - /// Could not determine the operating system. - /// - internal static string FormatRuntimeInfoPage_OperatingSystemFail() - => GetString("RuntimeInfoPage_OperatingSystemFail"); - - /// - /// Could not determine the runtime architecture. - /// - internal static string RuntimeInfoPage_RuntimeArchitectureFail - { - get => GetString("RuntimeInfoPage_RuntimeArchitectureFail"); - } - - /// - /// Could not determine the runtime architecture. - /// - internal static string FormatRuntimeInfoPage_RuntimeArchitectureFail() - => GetString("RuntimeInfoPage_RuntimeArchitectureFail"); - - /// - /// Could not determine the runtime type. - /// - internal static string RuntimeInfoPage_RuntimeTypeFail - { - get => GetString("RuntimeInfoPage_RuntimeTypeFail"); - } - - /// - /// Could not determine the runtime type. - /// - internal static string FormatRuntimeInfoPage_RuntimeTypeFail() - => GetString("RuntimeInfoPage_RuntimeTypeFail"); - - /// - /// Environment: - /// - internal static string RuntimeInfoPage_Environment - { - get => GetString("RuntimeInfoPage_Environment"); - } - - /// - /// Environment: - /// - internal static string FormatRuntimeInfoPage_Environment() - => GetString("RuntimeInfoPage_Environment"); - - /// - /// An error occurred when configuring the exception handler middleware. Either the 'ExceptionHandlingPath' or the 'ExceptionHandler' option must be set in 'UseExceptionHandler()'. - /// - internal static string ExceptionHandlerOptions_NotConfiguredCorrectly - { - get => GetString("ExceptionHandlerOptions_NotConfiguredCorrectly"); - } - - /// - /// An error occurred when configuring the exception handler middleware. Either the 'ExceptionHandlingPath' or the 'ExceptionHandler' option must be set in 'UseExceptionHandler()'. - /// - internal static string FormatExceptionHandlerOptions_NotConfiguredCorrectly() - => GetString("ExceptionHandlerOptions_NotConfiguredCorrectly"); - - /// - /// No route values. - /// - internal static string ErrorPageHtml_NoRouteValues - { - get => GetString("ErrorPageHtml_NoRouteValues"); - } - - /// - /// No route values. - /// - internal static string FormatErrorPageHtml_NoRouteValues() - => GetString("ErrorPageHtml_NoRouteValues"); - - /// - /// Routing - /// - internal static string ErrorPageHtml_RoutingButton - { - get => GetString("ErrorPageHtml_RoutingButton"); - } - - /// - /// Routing - /// - internal static string FormatErrorPageHtml_RoutingButton() - => GetString("ErrorPageHtml_RoutingButton"); - - /// - /// Endpoint - /// - internal static string ErrorPageHtml_Endpoint - { - get => GetString("ErrorPageHtml_Endpoint"); - } - - /// - /// Endpoint - /// - internal static string FormatErrorPageHtml_Endpoint() - => GetString("ErrorPageHtml_Endpoint"); - - /// - /// Display Name - /// - internal static string ErrorPageHtml_EndpointDisplayName - { - get => GetString("ErrorPageHtml_EndpointDisplayName"); - } - - /// - /// Display Name - /// - internal static string FormatErrorPageHtml_EndpointDisplayName() - => GetString("ErrorPageHtml_EndpointDisplayName"); - - /// - /// Route Order - /// - internal static string ErrorPageHtml_EndpointRouteOrder - { - get => GetString("ErrorPageHtml_EndpointRouteOrder"); - } - - /// - /// Route Order - /// - internal static string FormatErrorPageHtml_EndpointRouteOrder() - => GetString("ErrorPageHtml_EndpointRouteOrder"); - - /// - /// Route HTTP Method - /// - internal static string ErrorPageHtml_EndpointRouteHttpMethod - { - get => GetString("ErrorPageHtml_EndpointRouteHttpMethod"); - } - - /// - /// Route HTTP Method - /// - internal static string FormatErrorPageHtml_EndpointRouteHttpMethod() - => GetString("ErrorPageHtml_EndpointRouteHttpMethod"); - - /// - /// Route Pattern - /// - internal static string ErrorPageHtml_EndpointRoutePattern - { - get => GetString("ErrorPageHtml_EndpointRoutePattern"); - } - - /// - /// Route Pattern - /// - internal static string FormatErrorPageHtml_EndpointRoutePattern() - => GetString("ErrorPageHtml_EndpointRoutePattern"); - - /// - /// No endpoint. - /// - internal static string ErrorPageHtml_NoEndpoint - { - get => GetString("ErrorPageHtml_NoEndpoint"); - } - - /// - /// No endpoint. - /// - internal static string FormatErrorPageHtml_NoEndpoint() - => GetString("ErrorPageHtml_NoEndpoint"); - - /// - /// Route Values - /// - internal static string ErrorPageHtml_RouteValues - { - get => GetString("ErrorPageHtml_RouteValues"); - } - - /// - /// Route Values - /// - internal static string FormatErrorPageHtml_RouteValues() - => GetString("ErrorPageHtml_RouteValues"); - - /// - /// Name - /// - internal static string ErrorPageHtml_NameColumn - { - get => GetString("ErrorPageHtml_NameColumn"); - } - - /// - /// Name - /// - internal static string FormatErrorPageHtml_NameColumn() - => GetString("ErrorPageHtml_NameColumn"); - - 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; - } - } -} diff --git a/src/Middleware/HealthChecks/src/Microsoft.AspNetCore.Diagnostics.HealthChecks.csproj b/src/Middleware/HealthChecks/src/Microsoft.AspNetCore.Diagnostics.HealthChecks.csproj index a761a1a3b1..34929e104e 100644 --- a/src/Middleware/HealthChecks/src/Microsoft.AspNetCore.Diagnostics.HealthChecks.csproj +++ b/src/Middleware/HealthChecks/src/Microsoft.AspNetCore.Diagnostics.HealthChecks.csproj @@ -24,11 +24,4 @@ - - - ResXFileCodeGenerator - Resources.Designer.cs - - - diff --git a/src/Middleware/HealthChecks/src/Properties/Resources.Designer.cs b/src/Middleware/HealthChecks/src/Properties/Resources.Designer.cs deleted file mode 100644 index b5a253282e..0000000000 --- a/src/Middleware/HealthChecks/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -namespace Microsoft.AspNetCore.Diagnostics.HealthChecks -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Diagnostics.HealthChecks.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. - /// - internal static string UnableToFindServices - { - get => GetString("UnableToFindServices"); - } - - /// - /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. - /// - internal static string FormatUnableToFindServices(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("UnableToFindServices"), 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; - } - } -} diff --git a/src/Middleware/Localization/sample/LocalizationSample.csproj b/src/Middleware/Localization/sample/LocalizationSample.csproj index 6fb61d7925..678121156b 100644 --- a/src/Middleware/Localization/sample/LocalizationSample.csproj +++ b/src/Middleware/Localization/sample/LocalizationSample.csproj @@ -2,6 +2,9 @@ netcoreapp3.0 + + + false diff --git a/src/Middleware/Localization/src/Properties/Resources.Designer.cs b/src/Middleware/Localization/src/Properties/Resources.Designer.cs deleted file mode 100644 index 49608c3eaa..0000000000 --- a/src/Middleware/Localization/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -namespace Microsoft.AspNetCore.Localization -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Localization.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Please provide at least one culture. - /// - internal static string Exception_CulturesShouldNotBeEmpty - { - get => GetString("Exception_CulturesShouldNotBeEmpty"); - } - - /// - /// Please provide at least one culture. - /// - internal static string FormatException_CulturesShouldNotBeEmpty() - => GetString("Exception_CulturesShouldNotBeEmpty"); - - 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; - } - } -} diff --git a/src/Middleware/Localization/testassets/Directory.Build.props b/src/Middleware/Localization/testassets/Directory.Build.props new file mode 100644 index 0000000000..86b11bdf6c --- /dev/null +++ b/src/Middleware/Localization/testassets/Directory.Build.props @@ -0,0 +1,8 @@ + + + + + + false + + diff --git a/src/Middleware/Rewrite/src/Properties/Resources.Designer.cs b/src/Middleware/Rewrite/src/Properties/Resources.Designer.cs deleted file mode 100644 index f52b4232a8..0000000000 --- a/src/Middleware/Rewrite/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -namespace Microsoft.AspNetCore.Rewrite -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Rewrite.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Error adding a mod_rewrite rule. The change environment flag is not supported. - /// - internal static string Error_ChangeEnvironmentNotSupported - { - get { return GetString("Error_ChangeEnvironmentNotSupported"); } - } - - /// - /// Error adding a mod_rewrite rule. The change environment flag is not supported. - /// - internal static string FormatError_ChangeEnvironmentNotSupported() - { - return GetString("Error_ChangeEnvironmentNotSupported"); - } - - /// - /// Could not parse integer from value '{0}'. - /// - internal static string Error_CouldNotParseInteger - { - get { return GetString("Error_CouldNotParseInteger"); } - } - - /// - /// Could not parse integer from value '{0}'. - /// - internal static string FormatError_CouldNotParseInteger(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_CouldNotParseInteger"), p0); - } - - /// - /// Index out of range for backreference: '{0}' at string index: '{1}' - /// - internal static string Error_InputParserIndexOutOfRange - { - get { return GetString("Error_InputParserIndexOutOfRange"); } - } - - /// - /// Index out of range for backreference: '{0}' at string index: '{1}' - /// - internal static string FormatError_InputParserIndexOutOfRange(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_InputParserIndexOutOfRange"), p0, p1); - } - - /// - /// Cannot parse '{0}' to integer at string index: '{1}' - /// - internal static string Error_InputParserInvalidInteger - { - get { return GetString("Error_InputParserInvalidInteger"); } - } - - /// - /// Cannot parse '{0}' to integer at string index: '{1}' - /// - internal static string FormatError_InputParserInvalidInteger(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_InputParserInvalidInteger"), p0, p1); - } - - /// - /// Missing close brace for parameter at string index: '{0}' - /// - internal static string Error_InputParserMissingCloseBrace - { - get { return GetString("Error_InputParserMissingCloseBrace"); } - } - - /// - /// Missing close brace for parameter at string index: '{0}' - /// - internal static string FormatError_InputParserMissingCloseBrace(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_InputParserMissingCloseBrace"), p0); - } - - /// - /// Missing backreference for parameter at string index: '{0}' - /// - internal static string Error_InputParserNoBackreference - { - get { return GetString("Error_InputParserNoBackreference"); } - } - - /// - /// Missing backreference for parameter at string index: '{0}' - /// - internal static string FormatError_InputParserNoBackreference(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_InputParserNoBackreference"), p0); - } - - /// - /// Unrecognized parameter type: '{0}', terminated at string index: '{1}' - /// - internal static string Error_InputParserUnrecognizedParameter - { - get { return GetString("Error_InputParserUnrecognizedParameter"); } - } - - /// - /// Unrecognized parameter type: '{0}', terminated at string index: '{1}' - /// - internal static string FormatError_InputParserUnrecognizedParameter(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_InputParserUnrecognizedParameter"), p0, p1); - } - - /// - /// Syntax error for integers in comparison. - /// - internal static string Error_IntegerMatch_FormatExceptionMessage - { - get { return GetString("Error_IntegerMatch_FormatExceptionMessage"); } - } - - /// - /// Syntax error for integers in comparison. - /// - internal static string FormatError_IntegerMatch_FormatExceptionMessage() - { - return GetString("Error_IntegerMatch_FormatExceptionMessage"); - } - - /// - /// Error parsing the mod_rewrite rule. The cookie flag (CO) has an incorrect format '{0}'. - /// - internal static string Error_InvalidChangeCookieFlag - { - get { return GetString("Error_InvalidChangeCookieFlag"); } - } - - /// - /// Error parsing the mod_rewrite rule. The cookie flag (CO) has an incorrect format '{0}'. - /// - internal static string FormatError_InvalidChangeCookieFlag(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_InvalidChangeCookieFlag"), p0); - } - - /// - /// Could not parse the mod_rewrite file. Message: '{0}'. Line number '{1}'. - /// - internal static string Error_ModRewriteParseError - { - get { return GetString("Error_ModRewriteParseError"); } - } - - /// - /// Could not parse the mod_rewrite file. Message: '{0}'. Line number '{1}'. - /// - internal static string FormatError_ModRewriteParseError(object p0, object p1) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_ModRewriteParseError"), p0, p1); - } - - /// - /// Could not parse the mod_rewrite file. Line number '{0}'. - /// - internal static string Error_ModRewriteGeneralParseError - { - get { return GetString("Error_ModRewriteGeneralParseError"); } - } - - /// - /// Could not parse the mod_rewrite file. Line number '{0}'. - /// - internal static string FormatError_ModRewriteGeneralParseError(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_ModRewriteGeneralParseError"), p0); - } - - /// - /// Could not parse the UrlRewrite file. Message: '{0}'. Line number '{1}': '{2}'. - /// - internal static string Error_UrlRewriteParseError - { - get { return GetString("Error_UrlRewriteParseError"); } - } - - /// - /// Could not parse the UrlRewrite file. Message: '{0}'. Line number '{1}': '{2}'. - /// - internal static string FormatError_UrlRewriteParseError(object p0, object p1, object p2) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_UrlRewriteParseError"), p0, p1, p2); - } - - /// - /// Rules using the '{0}' server variable are not supported - /// - internal static string Error_UnsupportedServerVariable - { - get { return GetString("Error_UnsupportedServerVariable"); } - } - - /// - /// Rules using the '{0}' server variable are not supported - /// - internal static string FormatError_UnsupportedServerVariable(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_UnsupportedServerVariable"), p0); - } - - 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; - } - } -} diff --git a/src/Middleware/Session/src/Properties/Resources.Designer.cs b/src/Middleware/Session/src/Properties/Resources.Designer.cs deleted file mode 100644 index 425ab7bc39..0000000000 --- a/src/Middleware/Session/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -namespace Microsoft.AspNetCore.Session -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Session.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The key cannot be longer than '{0}' when encoded with UTF-8. - /// - internal static string Exception_KeyLengthIsExceeded - { - get => GetString("Exception_KeyLengthIsExceeded"); - } - - /// - /// The key cannot be longer than '{0}' when encoded with UTF-8. - /// - internal static string FormatException_KeyLengthIsExceeded(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_KeyLengthIsExceeded"), p0); - - /// - /// The session cannot be established after the response has started. - /// - internal static string Exception_InvalidSessionEstablishment - { - get => GetString("Exception_InvalidSessionEstablishment"); - } - - /// - /// The session cannot be established after the response has started. - /// - internal static string FormatException_InvalidSessionEstablishment() - => GetString("Exception_InvalidSessionEstablishment"); - - /// - /// The value cannot be serialized in two bytes. - /// - internal static string Exception_InvalidToSerializeIn2Bytes - { - get => GetString("Exception_InvalidToSerializeIn2Bytes"); - } - - /// - /// The value cannot be serialized in two bytes. - /// - internal static string FormatException_InvalidToSerializeIn2Bytes() - => GetString("Exception_InvalidToSerializeIn2Bytes"); - - /// - /// The value cannot be serialized in three bytes. - /// - internal static string Exception_InvalidToSerializeIn3Bytes - { - get => GetString("Exception_InvalidToSerializeIn3Bytes"); - } - - /// - /// The value cannot be serialized in three bytes. - /// - internal static string FormatException_InvalidToSerializeIn3Bytes() - => GetString("Exception_InvalidToSerializeIn3Bytes"); - - /// - /// The value cannot be negative. - /// - internal static string Exception_NumberShouldNotBeNegative - { - get => GetString("Exception_NumberShouldNotBeNegative"); - } - - /// - /// The value cannot be negative. - /// - internal static string FormatException_NumberShouldNotBeNegative() - => GetString("Exception_NumberShouldNotBeNegative"); - - /// - /// Argument cannot be null or empty string. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Argument cannot be null or empty string. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - 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; - } - } -} diff --git a/src/Middleware/StaticFiles/src/Resources.Designer.cs b/src/Middleware/StaticFiles/src/Resources.Designer.cs deleted file mode 100644 index 850389c5b1..0000000000 --- a/src/Middleware/StaticFiles/src/Resources.Designer.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -namespace Microsoft.AspNetCore.StaticFiles -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.StaticFiles.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// No formatter provided. - /// - internal static string Args_NoFormatter - { - get { return GetString("Args_NoFormatter"); } - } - - /// - /// No formatter provided. - /// - internal static string FormatArgs_NoFormatter() - { - return GetString("Args_NoFormatter"); - } - - /// - /// Index of - /// - internal static string HtmlDir_IndexOf - { - get { return GetString("HtmlDir_IndexOf"); } - } - - /// - /// Index of - /// - internal static string FormatHtmlDir_IndexOf() - { - return GetString("HtmlDir_IndexOf"); - } - - /// - /// Last Modified - /// - internal static string HtmlDir_LastModified - { - get { return GetString("HtmlDir_LastModified"); } - } - - /// - /// Last Modified - /// - internal static string FormatHtmlDir_LastModified() - { - return GetString("HtmlDir_LastModified"); - } - - /// - /// Modified - /// - internal static string HtmlDir_Modified - { - get { return GetString("HtmlDir_Modified"); } - } - - /// - /// Modified - /// - internal static string FormatHtmlDir_Modified() - { - return GetString("HtmlDir_Modified"); - } - - /// - /// Name - /// - internal static string HtmlDir_Name - { - get { return GetString("HtmlDir_Name"); } - } - - /// - /// Name - /// - internal static string FormatHtmlDir_Name() - { - return GetString("HtmlDir_Name"); - } - - /// - /// Size - /// - internal static string HtmlDir_Size - { - get { return GetString("HtmlDir_Size"); } - } - - /// - /// Size - /// - internal static string FormatHtmlDir_Size() - { - return GetString("HtmlDir_Size"); - } - - /// - /// The list of files in the given directory. Column headers are listed in the first row. - /// - internal static string HtmlDir_TableSummary - { - get { return GetString("HtmlDir_TableSummary"); } - } - - /// - /// The list of files in the given directory. Column headers are listed in the first row. - /// - internal static string FormatHtmlDir_TableSummary() - { - return GetString("HtmlDir_TableSummary"); - } - - 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; - } - } -} diff --git a/src/Mvc/Extensions.ApiDescription.Client/src/Properties/Resources.Designer.cs b/src/Mvc/Extensions.ApiDescription.Client/src/Properties/Resources.Designer.cs deleted file mode 100644 index f1b61f00ac..0000000000 --- a/src/Mvc/Extensions.ApiDescription.Client/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -namespace Microsoft.Extensions.ApiDescription.Client -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.Extensions.ApiDescription.Client.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Multiple items have OutputPath='{0}'. All OpenApiReference items must have unique OutputPath metadata. - /// - internal static string DuplicateFileOutputPaths - { - get => GetString("DuplicateFileOutputPaths"); - } - - /// - /// Multiple items have OutputPath='{0}'. All OpenApiReference items must have unique OutputPath metadata. - /// - internal static string FormatDuplicateFileOutputPaths(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateFileOutputPaths"), 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; - } - } -} diff --git a/src/Mvc/GetDocumentInsider/src/Properties/Resources.Designer.cs b/src/Mvc/GetDocumentInsider/src/Properties/Resources.Designer.cs deleted file mode 100644 index 9d45bcb911..0000000000 --- a/src/Mvc/GetDocumentInsider/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,352 +0,0 @@ -// -namespace Microsoft.Extensions.ApiDescription.Tool -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.Extensions.ApiDescription.Tool.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The assembly path to use. Required. - /// - internal static string AssemblyDescription - { - get => GetString("AssemblyDescription"); - } - - /// - /// The assembly path to use. Required. - /// - internal static string FormatAssemblyDescription() - => GetString("AssemblyDescription"); - - /// - /// Missing required option '--{0}'. - /// - internal static string MissingOption - { - get => GetString("MissingOption"); - } - - /// - /// Missing required option '--{0}'. - /// - internal static string FormatMissingOption(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MissingOption"), p0); - - /// - /// Do not colorize console output. - /// - internal static string NoColorDescription - { - get => GetString("NoColorDescription"); - } - - /// - /// Do not colorize console output. - /// - internal static string FormatNoColorDescription() - => GetString("NoColorDescription"); - - /// - /// The directory where the document files should be written. Required. - /// - internal static string OutputDescription - { - get => GetString("OutputDescription"); - } - - /// - /// The directory where the document files should be written. Required. - /// - internal static string FormatOutputDescription() - => GetString("OutputDescription"); - - /// - /// Prefix console output with logging level. - /// - internal static string PrefixDescription - { - get => GetString("PrefixDescription"); - } - - /// - /// Prefix console output with logging level. - /// - internal static string FormatPrefixDescription() - => GetString("PrefixDescription"); - - /// - /// Show verbose console output. - /// - internal static string VerboseDescription - { - get => GetString("VerboseDescription"); - } - - /// - /// Show verbose console output. - /// - internal static string FormatVerboseDescription() - => GetString("VerboseDescription"); - - /// - /// Location from which inside man was copied (in the .NET Framework case) or loaded. Required. - /// - internal static string ToolsDirectoryDescription - { - get => GetString("ToolsDirectoryDescription"); - } - - /// - /// Location from which inside man was copied (in the .NET Framework case) or loaded. Required. - /// - internal static string FormatToolsDirectoryDescription() - => GetString("ToolsDirectoryDescription"); - - /// - /// Generating document named '{0}'. - /// - internal static string GeneratingDocument - { - get => GetString("GeneratingDocument"); - } - - /// - /// Generating document named '{0}'. - /// - internal static string FormatGeneratingDocument(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("GeneratingDocument"), p0); - - /// - /// Assembly '{0}' does not contain an entry point. - /// - internal static string MissingEntryPoint - { - get => GetString("MissingEntryPoint"); - } - - /// - /// Assembly '{0}' does not contain an entry point. - /// - internal static string FormatMissingEntryPoint(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MissingEntryPoint"), p0); - - /// - /// Unable to find service type '{0}' in loaded assemblies. - /// - internal static string ServiceTypeNotFound - { - get => GetString("ServiceTypeNotFound"); - } - - /// - /// Unable to find service type '{0}' in loaded assemblies. - /// - internal static string FormatServiceTypeNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ServiceTypeNotFound"), p0); - - /// - /// Method '{0}' not found in type '{1}' with expected signature. - /// - internal static string MethodNotFound - { - get => GetString("MethodNotFound"); - } - - /// - /// Method '{0}' not found in type '{1}' with expected signature. - /// - internal static string FormatMethodNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("MethodNotFound"), p0, p1); - - /// - /// Unable to find service type '{0}' in dependency injection container. - /// - internal static string ServiceNotFound - { - get => GetString("ServiceNotFound"); - } - - /// - /// Unable to find service type '{0}' in dependency injection container. - /// - internal static string FormatServiceNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ServiceNotFound"), p0); - - /// - /// Method '{0}' of type '{1}' returned null. Must return a non-null '{2}'. - /// - internal static string MethodReturnedNull - { - get => GetString("MethodReturnedNull"); - } - - /// - /// Method '{0}' of type '{1}' returned null. Must return a non-null '{2}'. - /// - internal static string FormatMethodReturnedNull(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("MethodReturnedNull"), p0, p1, p2); - - /// - /// Method '{0}' of type '{1}' has unsupported return type '{2}'. Must return '{3}'. - /// - internal static string MethodReturnTypeUnsupported - { - get => GetString("MethodReturnTypeUnsupported"); - } - - /// - /// Method '{0}' of type '{1}' has unsupported return type '{2}'. Must return '{3}'. - /// - internal static string FormatMethodReturnTypeUnsupported(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("MethodReturnTypeUnsupported"), p0, p1, p2, p3); - - /// - /// Method '{0}' of type '{1}' timed out. Must complete execution within {2} minute. - /// - internal static string MethodTimedOut - { - get => GetString("MethodTimedOut"); - } - - /// - /// Method '{0}' of type '{1}' timed out. Must complete execution within {2} minute. - /// - internal static string FormatMethodTimedOut(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("MethodTimedOut"), p0, p1, p2); - - /// - /// Method '{0}' of type '{1}' is static. Must be an instance method. - /// - internal static string MethodIsStatic - { - get => GetString("MethodIsStatic"); - } - - /// - /// Method '{0}' of type '{1}' is static. Must be an instance method. - /// - internal static string FormatMethodIsStatic(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("MethodIsStatic"), p0, p1); - - /// - /// No method '{0}', '{1}' or '{2}' found in type '{3}' with expected signatures. - /// - internal static string MethodsNotFound - { - get => GetString("MethodsNotFound"); - } - - /// - /// No method '{0}', '{1}' or '{2}' found in type '{3}' with expected signatures. - /// - internal static string FormatMethodsNotFound(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("MethodsNotFound"), p0, p1, p2, p3); - - /// - /// Writing document named '{0}' to '{1}'. - /// - internal static string WritingDocument - { - get => GetString("WritingDocument"); - } - - /// - /// Writing document named '{0}' to '{1}'. - /// - internal static string FormatWritingDocument(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("WritingDocument"), p0, p1); - - /// - /// Method '{0}' of type '{1}' wrote no content for document named '{2}'. - /// - internal static string MethodWroteNoContent - { - get => GetString("MethodWroteNoContent"); - } - - /// - /// Method '{0}' of type '{1}' wrote no content for document named '{2}'. - /// - internal static string FormatMethodWroteNoContent(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("MethodWroteNoContent"), p0, p1, p2); - - /// - /// GetDocument.Insider - /// - internal static string CommandFullName - { - get => GetString("CommandFullName"); - } - - /// - /// GetDocument.Insider - /// - internal static string FormatCommandFullName() - => GetString("CommandFullName"); - - /// - /// The path where the list of document files should be written. Required. - /// - internal static string FileListDescription - { - get => GetString("FileListDescription"); - } - - /// - /// The path where the list of document files should be written. Required. - /// - internal static string FormatFileListDescription() - => GetString("FileListDescription"); - - /// - /// The project name to use. Required. - /// - internal static string ProjectDescription - { - get => GetString("ProjectDescription"); - } - - /// - /// The project name to use. Required. - /// - internal static string FormatProjectDescription() - => GetString("ProjectDescription"); - - /// - /// Unable to resolve a non-null '{0}' implementation using method '{1}', '{2}' or '{3}' of type '{4}'. - /// - internal static string ServiceProviderNotFound - { - get => GetString("ServiceProviderNotFound"); - } - - /// - /// Unable to resolve a non-null '{0}' implementation using method '{1}', '{2}' or '{3}' of type '{4}'. - /// - internal static string FormatServiceProviderNotFound(object p0, object p1, object p2, object p3, object p4) - => string.Format(CultureInfo.CurrentCulture, GetString("ServiceProviderNotFound"), p0, p1, p2, p3, p4); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.Abstractions/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.Abstractions/src/Properties/Resources.Designer.cs deleted file mode 100644 index 469767e4e4..0000000000 --- a/src/Mvc/Mvc.Abstractions/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,310 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Abstractions -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Abstractions.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Value cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - /// - /// The ModelMetadata property must be set before accessing this property. - /// - internal static string ModelBindingContext_ModelMetadataMustBeSet - { - get => GetString("ModelBindingContext_ModelMetadataMustBeSet"); - } - - /// - /// The ModelMetadata property must be set before accessing this property. - /// - internal static string FormatModelBindingContext_ModelMetadataMustBeSet() - => GetString("ModelBindingContext_ModelMetadataMustBeSet"); - - /// - /// A field previously marked invalid should not be marked valid. - /// - internal static string Validation_InvalidFieldCannotBeReset - { - get => GetString("Validation_InvalidFieldCannotBeReset"); - } - - /// - /// A field previously marked invalid should not be marked valid. - /// - internal static string FormatValidation_InvalidFieldCannotBeReset() - => GetString("Validation_InvalidFieldCannotBeReset"); - - /// - /// A field previously marked invalid should not be marked skipped. - /// - internal static string Validation_InvalidFieldCannotBeReset_ToSkipped - { - get => GetString("Validation_InvalidFieldCannotBeReset_ToSkipped"); - } - - /// - /// A field previously marked invalid should not be marked skipped. - /// - internal static string FormatValidation_InvalidFieldCannotBeReset_ToSkipped() - => GetString("Validation_InvalidFieldCannotBeReset_ToSkipped"); - - /// - /// The maximum number of allowed model errors has been reached. - /// - internal static string ModelStateDictionary_MaxModelStateErrors - { - get => GetString("ModelStateDictionary_MaxModelStateErrors"); - } - - /// - /// The maximum number of allowed model errors has been reached. - /// - internal static string FormatModelStateDictionary_MaxModelStateErrors() - => GetString("ModelStateDictionary_MaxModelStateErrors"); - - /// - /// Body - /// - internal static string BindingSource_Body - { - get => GetString("BindingSource_Body"); - } - - /// - /// Body - /// - internal static string FormatBindingSource_Body() - => GetString("BindingSource_Body"); - - /// - /// Custom - /// - internal static string BindingSource_Custom - { - get => GetString("BindingSource_Custom"); - } - - /// - /// Custom - /// - internal static string FormatBindingSource_Custom() - => GetString("BindingSource_Custom"); - - /// - /// Form - /// - internal static string BindingSource_Form - { - get => GetString("BindingSource_Form"); - } - - /// - /// Form - /// - internal static string FormatBindingSource_Form() - => GetString("BindingSource_Form"); - - /// - /// Header - /// - internal static string BindingSource_Header - { - get => GetString("BindingSource_Header"); - } - - /// - /// Header - /// - internal static string FormatBindingSource_Header() - => GetString("BindingSource_Header"); - - /// - /// Services - /// - internal static string BindingSource_Services - { - get => GetString("BindingSource_Services"); - } - - /// - /// Services - /// - internal static string FormatBindingSource_Services() - => GetString("BindingSource_Services"); - - /// - /// ModelBinding - /// - internal static string BindingSource_ModelBinding - { - get => GetString("BindingSource_ModelBinding"); - } - - /// - /// ModelBinding - /// - internal static string FormatBindingSource_ModelBinding() - => GetString("BindingSource_ModelBinding"); - - /// - /// Path - /// - internal static string BindingSource_Path - { - get => GetString("BindingSource_Path"); - } - - /// - /// Path - /// - internal static string FormatBindingSource_Path() - => GetString("BindingSource_Path"); - - /// - /// Query - /// - internal static string BindingSource_Query - { - get => GetString("BindingSource_Query"); - } - - /// - /// Query - /// - internal static string FormatBindingSource_Query() - => GetString("BindingSource_Query"); - - /// - /// The provided binding source '{0}' is a composite. '{1}' requires that the source must represent a single type of input. - /// - internal static string BindingSource_CannotBeComposite - { - get => GetString("BindingSource_CannotBeComposite"); - } - - /// - /// The provided binding source '{0}' is a composite. '{1}' requires that the source must represent a single type of input. - /// - internal static string FormatBindingSource_CannotBeComposite(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeComposite"), p0, p1); - - /// - /// The provided binding source '{0}' is not a request-based binding source. '{1}' requires that the source must represent data from an HTTP request. - /// - internal static string BindingSource_MustBeFromRequest - { - get => GetString("BindingSource_MustBeFromRequest"); - } - - /// - /// The provided binding source '{0}' is not a request-based binding source. '{1}' requires that the source must represent data from an HTTP request. - /// - internal static string FormatBindingSource_MustBeFromRequest(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_MustBeFromRequest"), p0, p1); - - /// - /// The provided binding source '{0}' is a greedy data source. '{1}' does not support greedy data sources. - /// - internal static string BindingSource_CannotBeGreedy - { - get => GetString("BindingSource_CannotBeGreedy"); - } - - /// - /// The provided binding source '{0}' is a greedy data source. '{1}' does not support greedy data sources. - /// - internal static string FormatBindingSource_CannotBeGreedy(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeGreedy"), p0, p1); - - /// - /// The provided binding source '{0}' is not a greedy data source. '{1}' only supports greedy data sources. - /// - internal static string BindingSource_MustBeGreedy - { - get => GetString("BindingSource_MustBeGreedy"); - } - - /// - /// The provided binding source '{0}' is not a greedy data source. '{1}' only supports greedy data sources. - /// - internal static string FormatBindingSource_MustBeGreedy(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_MustBeGreedy"), p0, p1); - - /// - /// Special - /// - internal static string BindingSource_Special - { - get => GetString("BindingSource_Special"); - } - - /// - /// Special - /// - internal static string FormatBindingSource_Special() - => GetString("BindingSource_Special"); - - /// - /// FormFile - /// - internal static string BindingSource_FormFile - { - get => GetString("BindingSource_FormFile"); - } - - /// - /// FormFile - /// - internal static string FormatBindingSource_FormFile() - => GetString("BindingSource_FormFile"); - - /// - /// The type '{0}' must implement '{1}' to be used as a model binder. - /// - internal static string BinderType_MustBeIModelBinder - { - get => GetString("BinderType_MustBeIModelBinder"); - } - - /// - /// The type '{0}' must implement '{1}' to be used as a model binder. - /// - internal static string FormatBinderType_MustBeIModelBinder(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("BinderType_MustBeIModelBinder"), p0, p1); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelBindingMessageProvider.cs b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelBindingMessageProvider.cs index 30cffb2147..3898519524 100644 --- a/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelBindingMessageProvider.cs +++ b/src/Mvc/Mvc.Core/src/ModelBinding/Metadata/DefaultModelBindingMessageProvider.cs @@ -29,16 +29,16 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Metadata public DefaultModelBindingMessageProvider() { SetMissingBindRequiredValueAccessor(Resources.FormatModelBinding_MissingBindRequiredMember); - SetMissingKeyOrValueAccessor(Resources.FormatKeyValuePair_BothKeyAndValueMustBePresent); - SetMissingRequestBodyRequiredValueAccessor(Resources.FormatModelBinding_MissingRequestBodyRequiredMember); + SetMissingKeyOrValueAccessor(() => Resources.KeyValuePair_BothKeyAndValueMustBePresent); + SetMissingRequestBodyRequiredValueAccessor(() => Resources.ModelBinding_MissingRequestBodyRequiredMember); SetValueMustNotBeNullAccessor(Resources.FormatModelBinding_NullValueNotValid); SetAttemptedValueIsInvalidAccessor(Resources.FormatModelState_AttemptedValueIsInvalid); SetNonPropertyAttemptedValueIsInvalidAccessor(Resources.FormatModelState_NonPropertyAttemptedValueIsInvalid); SetUnknownValueIsInvalidAccessor(Resources.FormatModelState_UnknownValueIsInvalid); - SetNonPropertyUnknownValueIsInvalidAccessor(Resources.FormatModelState_NonPropertyUnknownValueIsInvalid); + SetNonPropertyUnknownValueIsInvalidAccessor(() => Resources.ModelState_NonPropertyUnknownValueIsInvalid); SetValueIsInvalidAccessor(Resources.FormatHtmlGeneration_ValueIsInvalid); SetValueMustBeANumberAccessor(Resources.FormatHtmlGeneration_ValueMustBeNumber); - SetNonPropertyValueMustBeANumberAccessor(Resources.FormatHtmlGeneration_NonPropertyValueMustBeNumber); + SetNonPropertyValueMustBeANumberAccessor(() => Resources.HtmlGeneration_NonPropertyValueMustBeNumber); } /// diff --git a/src/Mvc/Mvc.Core/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.Core/src/Properties/Resources.Designer.cs deleted file mode 100644 index c5a777379b..0000000000 --- a/src/Mvc/Mvc.Core/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,1780 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Core -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Core.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The argument '{0}' is invalid. Media types which match all types or match all subtypes are not supported. - /// - internal static string MatchAllContentTypeIsNotAllowed - { - get => GetString("MatchAllContentTypeIsNotAllowed"); - } - - /// - /// The argument '{0}' is invalid. Media types which match all types or match all subtypes are not supported. - /// - internal static string FormatMatchAllContentTypeIsNotAllowed(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MatchAllContentTypeIsNotAllowed"), p0); - - /// - /// The content-type '{0}' added in the '{1}' property is invalid. Media types which match all types or match all subtypes are not supported. - /// - internal static string ObjectResult_MatchAllContentType - { - get => GetString("ObjectResult_MatchAllContentType"); - } - - /// - /// The content-type '{0}' added in the '{1}' property is invalid. Media types which match all types or match all subtypes are not supported. - /// - internal static string FormatObjectResult_MatchAllContentType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ObjectResult_MatchAllContentType"), p0, p1); - - /// - /// The method '{0}' on type '{1}' returned an instance of '{2}'. Make sure to call Unwrap on the returned value to avoid unobserved faulted Task. - /// - internal static string ActionExecutor_WrappedTaskInstance - { - get => GetString("ActionExecutor_WrappedTaskInstance"); - } - - /// - /// The method '{0}' on type '{1}' returned an instance of '{2}'. Make sure to call Unwrap on the returned value to avoid unobserved faulted Task. - /// - internal static string FormatActionExecutor_WrappedTaskInstance(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ActionExecutor_WrappedTaskInstance"), p0, p1, p2); - - /// - /// The method '{0}' on type '{1}' returned a Task instance even though it is not an asynchronous method. - /// - internal static string ActionExecutor_UnexpectedTaskInstance - { - get => GetString("ActionExecutor_UnexpectedTaskInstance"); - } - - /// - /// The method '{0}' on type '{1}' returned a Task instance even though it is not an asynchronous method. - /// - internal static string FormatActionExecutor_UnexpectedTaskInstance(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ActionExecutor_UnexpectedTaskInstance"), p0, p1); - - /// - /// An action invoker could not be created for action '{0}'. - /// - internal static string ActionInvokerFactory_CouldNotCreateInvoker - { - get => GetString("ActionInvokerFactory_CouldNotCreateInvoker"); - } - - /// - /// An action invoker could not be created for action '{0}'. - /// - internal static string FormatActionInvokerFactory_CouldNotCreateInvoker(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ActionInvokerFactory_CouldNotCreateInvoker"), p0); - - /// - /// The action descriptor must be of type '{0}'. - /// - internal static string ActionDescriptorMustBeBasedOnControllerAction - { - get => GetString("ActionDescriptorMustBeBasedOnControllerAction"); - } - - /// - /// The action descriptor must be of type '{0}'. - /// - internal static string FormatActionDescriptorMustBeBasedOnControllerAction(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ActionDescriptorMustBeBasedOnControllerAction"), p0); - - /// - /// Value cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string PropertyOfTypeCannotBeNull - { - get => GetString("PropertyOfTypeCannotBeNull"); - } - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); - - /// - /// The '{0}' method of type '{1}' cannot return a null value. - /// - internal static string TypeMethodMustReturnNotNullValue - { - get => GetString("TypeMethodMustReturnNotNullValue"); - } - - /// - /// The '{0}' method of type '{1}' cannot return a null value. - /// - internal static string FormatTypeMethodMustReturnNotNullValue(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TypeMethodMustReturnNotNullValue"), p0, p1); - - /// - /// The value '{0}' is invalid. - /// - internal static string ModelBinding_NullValueNotValid - { - get => GetString("ModelBinding_NullValueNotValid"); - } - - /// - /// The value '{0}' is invalid. - /// - internal static string FormatModelBinding_NullValueNotValid(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinding_NullValueNotValid"), p0); - - /// - /// The passed expression of expression node type '{0}' is invalid. Only simple member access expressions for model properties are supported. - /// - internal static string Invalid_IncludePropertyExpression - { - get => GetString("Invalid_IncludePropertyExpression"); - } - - /// - /// The passed expression of expression node type '{0}' is invalid. Only simple member access expressions for model properties are supported. - /// - internal static string FormatInvalid_IncludePropertyExpression(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Invalid_IncludePropertyExpression"), p0); - - /// - /// No route matches the supplied values. - /// - internal static string NoRoutesMatched - { - get => GetString("NoRoutesMatched"); - } - - /// - /// No route matches the supplied values. - /// - internal static string FormatNoRoutesMatched() - => GetString("NoRoutesMatched"); - - /// - /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. - /// - internal static string AsyncActionFilter_InvalidShortCircuit - { - get => GetString("AsyncActionFilter_InvalidShortCircuit"); - } - - /// - /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. - /// - internal static string FormatAsyncActionFilter_InvalidShortCircuit(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("AsyncActionFilter_InvalidShortCircuit"), p0, p1, p2, p3); - - /// - /// If an {0} cancels execution by setting the {1} property of {2} to 'true', then it cannot call the next filter by invoking {3}. - /// - internal static string AsyncResultFilter_InvalidShortCircuit - { - get => GetString("AsyncResultFilter_InvalidShortCircuit"); - } - - /// - /// If an {0} cancels execution by setting the {1} property of {2} to 'true', then it cannot call the next filter by invoking {3}. - /// - internal static string FormatAsyncResultFilter_InvalidShortCircuit(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("AsyncResultFilter_InvalidShortCircuit"), p0, p1, p2, p3); - - /// - /// The type provided to '{0}' must implement '{1}'. - /// - internal static string FilterFactoryAttribute_TypeMustImplementIFilter - { - get => GetString("FilterFactoryAttribute_TypeMustImplementIFilter"); - } - - /// - /// The type provided to '{0}' must implement '{1}'. - /// - internal static string FormatFilterFactoryAttribute_TypeMustImplementIFilter(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("FilterFactoryAttribute_TypeMustImplementIFilter"), p0, p1); - - /// - /// Cannot return null from an action method with a return type of '{0}'. - /// - internal static string ActionResult_ActionReturnValueCannotBeNull - { - get => GetString("ActionResult_ActionReturnValueCannotBeNull"); - } - - /// - /// Cannot return null from an action method with a return type of '{0}'. - /// - internal static string FormatActionResult_ActionReturnValueCannotBeNull(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ActionResult_ActionReturnValueCannotBeNull"), p0); - - /// - /// The type '{0}' must derive from '{1}'. - /// - internal static string TypeMustDeriveFromType - { - get => GetString("TypeMustDeriveFromType"); - } - - /// - /// The type '{0}' must derive from '{1}'. - /// - internal static string FormatTypeMustDeriveFromType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TypeMustDeriveFromType"), p0, p1); - - /// - /// No encoding found for input formatter '{0}'. There must be at least one supported encoding registered in order for the formatter to read content. - /// - internal static string InputFormatterNoEncoding - { - get => GetString("InputFormatterNoEncoding"); - } - - /// - /// No encoding found for input formatter '{0}'. There must be at least one supported encoding registered in order for the formatter to read content. - /// - internal static string FormatInputFormatterNoEncoding(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InputFormatterNoEncoding"), p0); - - /// - /// Unsupported content type '{0}'. - /// - internal static string UnsupportedContentType - { - get => GetString("UnsupportedContentType"); - } - - /// - /// Unsupported content type '{0}'. - /// - internal static string FormatUnsupportedContentType(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedContentType"), p0); - - /// - /// No supported media type registered for output formatter '{0}'. There must be at least one supported media type registered in order for the output formatter to write content. - /// - internal static string OutputFormatterNoMediaType - { - get => GetString("OutputFormatterNoMediaType"); - } - - /// - /// No supported media type registered for output formatter '{0}'. There must be at least one supported media type registered in order for the output formatter to write content. - /// - internal static string FormatOutputFormatterNoMediaType(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("OutputFormatterNoMediaType"), p0); - - /// - /// The following errors occurred with attribute routing information:{0}{0}{1} - /// - internal static string AttributeRoute_AggregateErrorMessage - { - get => GetString("AttributeRoute_AggregateErrorMessage"); - } - - /// - /// The following errors occurred with attribute routing information:{0}{0}{1} - /// - internal static string FormatAttributeRoute_AggregateErrorMessage(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_AggregateErrorMessage"), p0, p1); - - /// - /// The attribute route '{0}' cannot contain a parameter named '{{{1}}}'. Use '[{1}]' in the route template to insert the value '{2}'. - /// - internal static string AttributeRoute_CannotContainParameter - { - get => GetString("AttributeRoute_CannotContainParameter"); - } - - /// - /// The attribute route '{0}' cannot contain a parameter named '{{{1}}}'. Use '[{1}]' in the route template to insert the value '{2}'. - /// - internal static string FormatAttributeRoute_CannotContainParameter(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_CannotContainParameter"), p0, p1, p2); - - /// - /// For action: '{0}'{1}Error: {2} - /// - internal static string AttributeRoute_IndividualErrorMessage - { - get => GetString("AttributeRoute_IndividualErrorMessage"); - } - - /// - /// For action: '{0}'{1}Error: {2} - /// - internal static string FormatAttributeRoute_IndividualErrorMessage(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_IndividualErrorMessage"), p0, p1, p2); - - /// - /// An empty replacement token ('[]') is not allowed. - /// - internal static string AttributeRoute_TokenReplacement_EmptyTokenNotAllowed - { - get => GetString("AttributeRoute_TokenReplacement_EmptyTokenNotAllowed"); - } - - /// - /// An empty replacement token ('[]') is not allowed. - /// - internal static string FormatAttributeRoute_TokenReplacement_EmptyTokenNotAllowed() - => GetString("AttributeRoute_TokenReplacement_EmptyTokenNotAllowed"); - - /// - /// Token delimiters ('[', ']') are imbalanced. - /// - internal static string AttributeRoute_TokenReplacement_ImbalancedSquareBrackets - { - get => GetString("AttributeRoute_TokenReplacement_ImbalancedSquareBrackets"); - } - - /// - /// Token delimiters ('[', ']') are imbalanced. - /// - internal static string FormatAttributeRoute_TokenReplacement_ImbalancedSquareBrackets() - => GetString("AttributeRoute_TokenReplacement_ImbalancedSquareBrackets"); - - /// - /// The route template '{0}' has invalid syntax. {1} - /// - internal static string AttributeRoute_TokenReplacement_InvalidSyntax - { - get => GetString("AttributeRoute_TokenReplacement_InvalidSyntax"); - } - - /// - /// The route template '{0}' has invalid syntax. {1} - /// - internal static string FormatAttributeRoute_TokenReplacement_InvalidSyntax(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_TokenReplacement_InvalidSyntax"), p0, p1); - - /// - /// While processing template '{0}', a replacement value for the token '{1}' could not be found. Available tokens: '{2}'. To use a '[' or ']' as a literal string in a route or within a constraint, use '[[' or ']]' instead. - /// - internal static string AttributeRoute_TokenReplacement_ReplacementValueNotFound - { - get => GetString("AttributeRoute_TokenReplacement_ReplacementValueNotFound"); - } - - /// - /// While processing template '{0}', a replacement value for the token '{1}' could not be found. Available tokens: '{2}'. To use a '[' or ']' as a literal string in a route or within a constraint, use '[[' or ']]' instead. - /// - internal static string FormatAttributeRoute_TokenReplacement_ReplacementValueNotFound(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_TokenReplacement_ReplacementValueNotFound"), p0, p1, p2); - - /// - /// A replacement token is not closed. - /// - internal static string AttributeRoute_TokenReplacement_UnclosedToken - { - get => GetString("AttributeRoute_TokenReplacement_UnclosedToken"); - } - - /// - /// A replacement token is not closed. - /// - internal static string FormatAttributeRoute_TokenReplacement_UnclosedToken() - => GetString("AttributeRoute_TokenReplacement_UnclosedToken"); - - /// - /// An unescaped '[' token is not allowed inside of a replacement token. Use '[[' to escape. - /// - internal static string AttributeRoute_TokenReplacement_UnescapedBraceInToken - { - get => GetString("AttributeRoute_TokenReplacement_UnescapedBraceInToken"); - } - - /// - /// An unescaped '[' token is not allowed inside of a replacement token. Use '[[' to escape. - /// - internal static string FormatAttributeRoute_TokenReplacement_UnescapedBraceInToken() - => GetString("AttributeRoute_TokenReplacement_UnescapedBraceInToken"); - - /// - /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. - /// - internal static string UnableToFindServices - { - get => GetString("UnableToFindServices"); - } - - /// - /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. - /// - internal static string FormatUnableToFindServices(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("UnableToFindServices"), p0, p1, p2); - - /// - /// Action: '{0}' - Template: '{1}' - /// - internal static string AttributeRoute_DuplicateNames_Item - { - get => GetString("AttributeRoute_DuplicateNames_Item"); - } - - /// - /// Action: '{0}' - Template: '{1}' - /// - internal static string FormatAttributeRoute_DuplicateNames_Item(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_DuplicateNames_Item"), p0, p1); - - /// - /// Attribute routes with the same name '{0}' must have the same template:{1}{2} - /// - internal static string AttributeRoute_DuplicateNames - { - get => GetString("AttributeRoute_DuplicateNames"); - } - - /// - /// Attribute routes with the same name '{0}' must have the same template:{1}{2} - /// - internal static string FormatAttributeRoute_DuplicateNames(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_DuplicateNames"), p0, p1, p2); - - /// - /// Error {0}:{1}{2} - /// - internal static string AttributeRoute_AggregateErrorMessage_ErrorNumber - { - get => GetString("AttributeRoute_AggregateErrorMessage_ErrorNumber"); - } - - /// - /// Error {0}:{1}{2} - /// - internal static string FormatAttributeRoute_AggregateErrorMessage_ErrorNumber(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_AggregateErrorMessage_ErrorNumber"), p0, p1, p2); - - /// - /// A method '{0}' must not define attribute routed actions and non attribute routed actions at the same time:{1}{2}{1}{1}Use 'AcceptVerbsAttribute' to create a single route that allows multiple HTTP verbs and defines a route, or set a route template in all attributes that constrain HTTP verbs. - /// - internal static string AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod - { - get => GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod"); - } - - /// - /// A method '{0}' must not define attribute routed actions and non attribute routed actions at the same time:{1}{2}{1}{1}Use 'AcceptVerbsAttribute' to create a single route that allows multiple HTTP verbs and defines a route, or set a route template in all attributes that constrain HTTP verbs. - /// - internal static string FormatAttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod"), p0, p1, p2); - - /// - /// Action: '{0}' - Route Template: '{1}' - HTTP Verbs: '{2}' - /// - internal static string AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item - { - get => GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item"); - } - - /// - /// Action: '{0}' - Route Template: '{1}' - HTTP Verbs: '{2}' - /// - internal static string FormatAttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("AttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item"), p0, p1, p2); - - /// - /// (none) - /// - internal static string AttributeRoute_NullTemplateRepresentation - { - get => GetString("AttributeRoute_NullTemplateRepresentation"); - } - - /// - /// (none) - /// - internal static string FormatAttributeRoute_NullTemplateRepresentation() - => GetString("AttributeRoute_NullTemplateRepresentation"); - - /// - /// Multiple actions matched. The following actions matched route data and had all constraints satisfied:{0}{0}{1} - /// - internal static string DefaultActionSelector_AmbiguousActions - { - get => GetString("DefaultActionSelector_AmbiguousActions"); - } - - /// - /// Multiple actions matched. The following actions matched route data and had all constraints satisfied:{0}{0}{1} - /// - internal static string FormatDefaultActionSelector_AmbiguousActions(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("DefaultActionSelector_AmbiguousActions"), p0, p1); - - /// - /// Could not find file: {0} - /// - internal static string FileResult_InvalidPath - { - get => GetString("FileResult_InvalidPath"); - } - - /// - /// Could not find file: {0} - /// - internal static string FormatFileResult_InvalidPath(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("FileResult_InvalidPath"), p0); - - /// - /// The input was not valid. - /// - internal static string SerializableError_DefaultError - { - get => GetString("SerializableError_DefaultError"); - } - - /// - /// The input was not valid. - /// - internal static string FormatSerializableError_DefaultError() - => GetString("SerializableError_DefaultError"); - - /// - /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. - /// - internal static string AsyncResourceFilter_InvalidShortCircuit - { - get => GetString("AsyncResourceFilter_InvalidShortCircuit"); - } - - /// - /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. - /// - internal static string FormatAsyncResourceFilter_InvalidShortCircuit(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("AsyncResourceFilter_InvalidShortCircuit"), p0, p1, p2, p3); - - /// - /// If the '{0}' property is not set to true, '{1}' property must be specified. - /// - internal static string ResponseCache_SpecifyDuration - { - get => GetString("ResponseCache_SpecifyDuration"); - } - - /// - /// If the '{0}' property is not set to true, '{1}' property must be specified. - /// - internal static string FormatResponseCache_SpecifyDuration(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ResponseCache_SpecifyDuration"), p0, p1); - - /// - /// The action '{0}' has ApiExplorer enabled, but is using conventional routing. Only actions which use attribute routing support ApiExplorer. - /// - internal static string ApiExplorer_UnsupportedAction - { - get => GetString("ApiExplorer_UnsupportedAction"); - } - - /// - /// The action '{0}' has ApiExplorer enabled, but is using conventional routing. Only actions which use attribute routing support ApiExplorer. - /// - internal static string FormatApiExplorer_UnsupportedAction(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ApiExplorer_UnsupportedAction"), p0); - - /// - /// The media type "{0}" is not valid. MediaTypes containing wildcards (*) are not allowed in formatter mappings. - /// - internal static string FormatterMappings_NotValidMediaType - { - get => GetString("FormatterMappings_NotValidMediaType"); - } - - /// - /// The media type "{0}" is not valid. MediaTypes containing wildcards (*) are not allowed in formatter mappings. - /// - internal static string FormatFormatterMappings_NotValidMediaType(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("FormatterMappings_NotValidMediaType"), p0); - - /// - /// The format provided is invalid '{0}'. A format must be a non-empty file-extension, optionally prefixed with a '.' character. - /// - internal static string Format_NotValid - { - get => GetString("Format_NotValid"); - } - - /// - /// The format provided is invalid '{0}'. A format must be a non-empty file-extension, optionally prefixed with a '.' character. - /// - internal static string FormatFormat_NotValid(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Format_NotValid"), p0); - - /// - /// The '{0}' cache profile is not defined. - /// - internal static string CacheProfileNotFound - { - get => GetString("CacheProfileNotFound"); - } - - /// - /// The '{0}' cache profile is not defined. - /// - internal static string FormatCacheProfileNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CacheProfileNotFound"), p0); - - /// - /// The model's runtime type '{0}' is not assignable to the type '{1}'. - /// - internal static string ModelType_WrongType - { - get => GetString("ModelType_WrongType"); - } - - /// - /// The model's runtime type '{0}' is not assignable to the type '{1}'. - /// - internal static string FormatModelType_WrongType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelType_WrongType"), p0, p1); - - /// - /// The type '{0}' cannot be activated by '{1}' because it is either a value type, an interface, an abstract class or an open generic type. - /// - internal static string ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated - { - get => GetString("ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated"); - } - - /// - /// The type '{0}' cannot be activated by '{1}' because it is either a value type, an interface, an abstract class or an open generic type. - /// - internal static string FormatValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated"), p0, p1); - - /// - /// The type '{0}' must implement '{1}' to be used as a model binder. - /// - internal static string BinderType_MustBeIModelBinder - { - get => GetString("BinderType_MustBeIModelBinder"); - } - - /// - /// The type '{0}' must implement '{1}' to be used as a model binder. - /// - internal static string FormatBinderType_MustBeIModelBinder(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("BinderType_MustBeIModelBinder"), p0, p1); - - /// - /// The provided binding source '{0}' is a composite. '{1}' requires that the source must represent a single type of input. - /// - internal static string BindingSource_CannotBeComposite - { - get => GetString("BindingSource_CannotBeComposite"); - } - - /// - /// The provided binding source '{0}' is a composite. '{1}' requires that the source must represent a single type of input. - /// - internal static string FormatBindingSource_CannotBeComposite(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeComposite"), p0, p1); - - /// - /// The provided binding source '{0}' is a greedy data source. '{1}' does not support greedy data sources. - /// - internal static string BindingSource_CannotBeGreedy - { - get => GetString("BindingSource_CannotBeGreedy"); - } - - /// - /// The provided binding source '{0}' is a greedy data source. '{1}' does not support greedy data sources. - /// - internal static string FormatBindingSource_CannotBeGreedy(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("BindingSource_CannotBeGreedy"), p0, p1); - - /// - /// The property {0}.{1} could not be found. - /// - internal static string Common_PropertyNotFound - { - get => GetString("Common_PropertyNotFound"); - } - - /// - /// The property {0}.{1} could not be found. - /// - internal static string FormatCommon_PropertyNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Common_PropertyNotFound"), p0, p1); - - /// - /// The key '{0}' is invalid JQuery syntax because it is missing a closing bracket. - /// - internal static string JQueryFormValueProviderFactory_MissingClosingBracket - { - get => GetString("JQueryFormValueProviderFactory_MissingClosingBracket"); - } - - /// - /// The key '{0}' is invalid JQuery syntax because it is missing a closing bracket. - /// - internal static string FormatJQueryFormValueProviderFactory_MissingClosingBracket(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("JQueryFormValueProviderFactory_MissingClosingBracket"), p0); - - /// - /// A value is required. - /// - internal static string KeyValuePair_BothKeyAndValueMustBePresent - { - get => GetString("KeyValuePair_BothKeyAndValueMustBePresent"); - } - - /// - /// A value is required. - /// - internal static string FormatKeyValuePair_BothKeyAndValueMustBePresent() - => GetString("KeyValuePair_BothKeyAndValueMustBePresent"); - - /// - /// The binding context has a null Model, but this binder requires a non-null model of type '{0}'. - /// - internal static string ModelBinderUtil_ModelCannotBeNull - { - get => GetString("ModelBinderUtil_ModelCannotBeNull"); - } - - /// - /// The binding context has a null Model, but this binder requires a non-null model of type '{0}'. - /// - internal static string FormatModelBinderUtil_ModelCannotBeNull(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderUtil_ModelCannotBeNull"), p0); - - /// - /// The binding context has a Model of type '{0}', but this binder can only operate on models of type '{1}'. - /// - internal static string ModelBinderUtil_ModelInstanceIsWrong - { - get => GetString("ModelBinderUtil_ModelInstanceIsWrong"); - } - - /// - /// The binding context has a Model of type '{0}', but this binder can only operate on models of type '{1}'. - /// - internal static string FormatModelBinderUtil_ModelInstanceIsWrong(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderUtil_ModelInstanceIsWrong"), p0, p1); - - /// - /// The binding context cannot have a null ModelMetadata. - /// - internal static string ModelBinderUtil_ModelMetadataCannotBeNull - { - get => GetString("ModelBinderUtil_ModelMetadataCannotBeNull"); - } - - /// - /// The binding context cannot have a null ModelMetadata. - /// - internal static string FormatModelBinderUtil_ModelMetadataCannotBeNull() - => GetString("ModelBinderUtil_ModelMetadataCannotBeNull"); - - /// - /// A value for the '{0}' parameter or property was not provided. - /// - internal static string ModelBinding_MissingBindRequiredMember - { - get => GetString("ModelBinding_MissingBindRequiredMember"); - } - - /// - /// A value for the '{0}' parameter or property was not provided. - /// - internal static string FormatModelBinding_MissingBindRequiredMember(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinding_MissingBindRequiredMember"), p0); - - /// - /// A non-empty request body is required. - /// - internal static string ModelBinding_MissingRequestBodyRequiredMember - { - get => GetString("ModelBinding_MissingRequestBodyRequiredMember"); - } - - /// - /// A non-empty request body is required. - /// - internal static string FormatModelBinding_MissingRequestBodyRequiredMember() - => GetString("ModelBinding_MissingRequestBodyRequiredMember"); - - /// - /// The parameter conversion from type '{0}' to type '{1}' failed because no type converter can convert between these types. - /// - internal static string ValueProviderResult_NoConverterExists - { - get => GetString("ValueProviderResult_NoConverterExists"); - } - - /// - /// The parameter conversion from type '{0}' to type '{1}' failed because no type converter can convert between these types. - /// - internal static string FormatValueProviderResult_NoConverterExists(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ValueProviderResult_NoConverterExists"), p0, p1); - - /// - /// Path '{0}' was not rooted. - /// - internal static string FileResult_PathNotRooted - { - get => GetString("FileResult_PathNotRooted"); - } - - /// - /// Path '{0}' was not rooted. - /// - internal static string FormatFileResult_PathNotRooted(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("FileResult_PathNotRooted"), p0); - - /// - /// The supplied URL is not local. A URL with an absolute path is considered local if it does not have a host/authority part. URLs using virtual paths ('~/') are also local. - /// - internal static string UrlNotLocal - { - get => GetString("UrlNotLocal"); - } - - /// - /// The supplied URL is not local. A URL with an absolute path is considered local if it does not have a host/authority part. URLs using virtual paths ('~/') are also local. - /// - internal static string FormatUrlNotLocal() - => GetString("UrlNotLocal"); - - /// - /// The argument '{0}' is invalid. Empty or null formats are not supported. - /// - internal static string FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat - { - get => GetString("FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat"); - } - - /// - /// The argument '{0}' is invalid. Empty or null formats are not supported. - /// - internal static string FormatFormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("FormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat"), p0); - - /// - /// "Invalid values '{0}'." - /// - internal static string AcceptHeaderParser_ParseAcceptHeader_InvalidValues - { - get => GetString("AcceptHeaderParser_ParseAcceptHeader_InvalidValues"); - } - - /// - /// "Invalid values '{0}'." - /// - internal static string FormatAcceptHeaderParser_ParseAcceptHeader_InvalidValues(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("AcceptHeaderParser_ParseAcceptHeader_InvalidValues"), p0); - - /// - /// The value '{0}' is not valid for {1}. - /// - internal static string ModelState_AttemptedValueIsInvalid - { - get => GetString("ModelState_AttemptedValueIsInvalid"); - } - - /// - /// The value '{0}' is not valid for {1}. - /// - internal static string FormatModelState_AttemptedValueIsInvalid(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelState_AttemptedValueIsInvalid"), p0, p1); - - /// - /// The value '{0}' is not valid. - /// - internal static string ModelState_NonPropertyAttemptedValueIsInvalid - { - get => GetString("ModelState_NonPropertyAttemptedValueIsInvalid"); - } - - /// - /// The value '{0}' is not valid. - /// - internal static string FormatModelState_NonPropertyAttemptedValueIsInvalid(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelState_NonPropertyAttemptedValueIsInvalid"), p0); - - /// - /// The supplied value is invalid for {0}. - /// - internal static string ModelState_UnknownValueIsInvalid - { - get => GetString("ModelState_UnknownValueIsInvalid"); - } - - /// - /// The supplied value is invalid for {0}. - /// - internal static string FormatModelState_UnknownValueIsInvalid(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelState_UnknownValueIsInvalid"), p0); - - /// - /// The supplied value is invalid. - /// - internal static string ModelState_NonPropertyUnknownValueIsInvalid - { - get => GetString("ModelState_NonPropertyUnknownValueIsInvalid"); - } - - /// - /// The supplied value is invalid. - /// - internal static string FormatModelState_NonPropertyUnknownValueIsInvalid() - => GetString("ModelState_NonPropertyUnknownValueIsInvalid"); - - /// - /// The value '{0}' is invalid. - /// - internal static string HtmlGeneration_ValueIsInvalid - { - get => GetString("HtmlGeneration_ValueIsInvalid"); - } - - /// - /// The value '{0}' is invalid. - /// - internal static string FormatHtmlGeneration_ValueIsInvalid(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("HtmlGeneration_ValueIsInvalid"), p0); - - /// - /// The field {0} must be a number. - /// - internal static string HtmlGeneration_ValueMustBeNumber - { - get => GetString("HtmlGeneration_ValueMustBeNumber"); - } - - /// - /// The field {0} must be a number. - /// - internal static string FormatHtmlGeneration_ValueMustBeNumber(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("HtmlGeneration_ValueMustBeNumber"), p0); - - /// - /// The field must be a number. - /// - internal static string HtmlGeneration_NonPropertyValueMustBeNumber - { - get => GetString("HtmlGeneration_NonPropertyValueMustBeNumber"); - } - - /// - /// The field must be a number. - /// - internal static string FormatHtmlGeneration_NonPropertyValueMustBeNumber() - => GetString("HtmlGeneration_NonPropertyValueMustBeNumber"); - - /// - /// The list of '{0}' must not be empty. Add at least one supported encoding. - /// - internal static string TextInputFormatter_SupportedEncodingsMustNotBeEmpty - { - get => GetString("TextInputFormatter_SupportedEncodingsMustNotBeEmpty"); - } - - /// - /// The list of '{0}' must not be empty. Add at least one supported encoding. - /// - internal static string FormatTextInputFormatter_SupportedEncodingsMustNotBeEmpty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TextInputFormatter_SupportedEncodingsMustNotBeEmpty"), p0); - - /// - /// The list of '{0}' must not be empty. Add at least one supported encoding. - /// - internal static string TextOutputFormatter_SupportedEncodingsMustNotBeEmpty - { - get => GetString("TextOutputFormatter_SupportedEncodingsMustNotBeEmpty"); - } - - /// - /// The list of '{0}' must not be empty. Add at least one supported encoding. - /// - internal static string FormatTextOutputFormatter_SupportedEncodingsMustNotBeEmpty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TextOutputFormatter_SupportedEncodingsMustNotBeEmpty"), p0); - - /// - /// '{0}' is not supported by '{1}'. Use '{2}' instead. - /// - internal static string TextOutputFormatter_WriteResponseBodyAsyncNotSupported - { - get => GetString("TextOutputFormatter_WriteResponseBodyAsyncNotSupported"); - } - - /// - /// '{0}' is not supported by '{1}'. Use '{2}' instead. - /// - internal static string FormatTextOutputFormatter_WriteResponseBodyAsyncNotSupported(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("TextOutputFormatter_WriteResponseBodyAsyncNotSupported"), p0, p1, p2); - - /// - /// No media types found in '{0}.{1}'. Add at least one media type to the list of supported media types. - /// - internal static string Formatter_NoMediaTypes - { - get => GetString("Formatter_NoMediaTypes"); - } - - /// - /// No media types found in '{0}.{1}'. Add at least one media type to the list of supported media types. - /// - internal static string FormatFormatter_NoMediaTypes(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Formatter_NoMediaTypes"), p0, p1); - - /// - /// Could not create a model binder for model object of type '{0}'. - /// - internal static string CouldNotCreateIModelBinder - { - get => GetString("CouldNotCreateIModelBinder"); - } - - /// - /// Could not create a model binder for model object of type '{0}'. - /// - internal static string FormatCouldNotCreateIModelBinder(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CouldNotCreateIModelBinder"), p0); - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to bind from the body. - /// - internal static string InputFormattersAreRequired - { - get => GetString("InputFormattersAreRequired"); - } - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to bind from the body. - /// - internal static string FormatInputFormattersAreRequired(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("InputFormattersAreRequired"), p0, p1, p2); - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to model bind. - /// - internal static string ModelBinderProvidersAreRequired - { - get => GetString("ModelBinderProvidersAreRequired"); - } - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to model bind. - /// - internal static string FormatModelBinderProvidersAreRequired(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinderProvidersAreRequired"), p0, p1, p2); - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to format a response. - /// - internal static string OutputFormattersAreRequired - { - get => GetString("OutputFormattersAreRequired"); - } - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to format a response. - /// - internal static string FormatOutputFormattersAreRequired(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("OutputFormattersAreRequired"), p0, p1, p2); - - /// - /// Multiple overloads of method '{0}' are not supported. - /// - internal static string MiddewareFilter_ConfigureMethodOverload - { - get => GetString("MiddewareFilter_ConfigureMethodOverload"); - } - - /// - /// Multiple overloads of method '{0}' are not supported. - /// - internal static string FormatMiddewareFilter_ConfigureMethodOverload(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MiddewareFilter_ConfigureMethodOverload"), p0); - - /// - /// A public method named '{0}' could not be found in the '{1}' type. - /// - internal static string MiddewareFilter_NoConfigureMethod - { - get => GetString("MiddewareFilter_NoConfigureMethod"); - } - - /// - /// A public method named '{0}' could not be found in the '{1}' type. - /// - internal static string FormatMiddewareFilter_NoConfigureMethod(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("MiddewareFilter_NoConfigureMethod"), p0, p1); - - /// - /// Could not find '{0}' in the feature list. - /// - internal static string MiddlewareFilterBuilder_NoMiddlewareFeature - { - get => GetString("MiddlewareFilterBuilder_NoMiddlewareFeature"); - } - - /// - /// Could not find '{0}' in the feature list. - /// - internal static string FormatMiddlewareFilterBuilder_NoMiddlewareFeature(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterBuilder_NoMiddlewareFeature"), p0); - - /// - /// The '{0}' property cannot be null. - /// - internal static string MiddlewareFilterBuilder_NullApplicationBuilder - { - get => GetString("MiddlewareFilterBuilder_NullApplicationBuilder"); - } - - /// - /// The '{0}' property cannot be null. - /// - internal static string FormatMiddlewareFilterBuilder_NullApplicationBuilder(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterBuilder_NullApplicationBuilder"), p0); - - /// - /// The '{0}' method in the type '{1}' must have a return type of '{2}'. - /// - internal static string MiddlewareFilter_InvalidConfigureReturnType - { - get => GetString("MiddlewareFilter_InvalidConfigureReturnType"); - } - - /// - /// The '{0}' method in the type '{1}' must have a return type of '{2}'. - /// - internal static string FormatMiddlewareFilter_InvalidConfigureReturnType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilter_InvalidConfigureReturnType"), p0, p1, p2); - - /// - /// Could not resolve a service of type '{0}' for the parameter '{1}' of method '{2}' on type '{3}'. - /// - internal static string MiddlewareFilter_ServiceResolutionFail - { - get => GetString("MiddlewareFilter_ServiceResolutionFail"); - } - - /// - /// Could not resolve a service of type '{0}' for the parameter '{1}' of method '{2}' on type '{3}'. - /// - internal static string FormatMiddlewareFilter_ServiceResolutionFail(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilter_ServiceResolutionFail"), p0, p1, p2, p3); - - /// - /// An {0} cannot be created without a valid instance of {1}. - /// - internal static string AuthorizeFilter_AuthorizationPolicyCannotBeCreated - { - get => GetString("AuthorizeFilter_AuthorizationPolicyCannotBeCreated"); - } - - /// - /// An {0} cannot be created without a valid instance of {1}. - /// - internal static string FormatAuthorizeFilter_AuthorizationPolicyCannotBeCreated(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("AuthorizeFilter_AuthorizationPolicyCannotBeCreated"), p0, p1); - - /// - /// The '{0}' cannot bind to a model of type '{1}'. Change the model type to '{2}' instead. - /// - internal static string FormCollectionModelBinder_CannotBindToFormCollection - { - get => GetString("FormCollectionModelBinder_CannotBindToFormCollection"); - } - - /// - /// The '{0}' cannot bind to a model of type '{1}'. Change the model type to '{2}' instead. - /// - internal static string FormatFormCollectionModelBinder_CannotBindToFormCollection(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("FormCollectionModelBinder_CannotBindToFormCollection"), p0, p1, p2); - - /// - /// '{0}' requires the response cache middleware. - /// - internal static string VaryByQueryKeys_Requires_ResponseCachingMiddleware - { - get => GetString("VaryByQueryKeys_Requires_ResponseCachingMiddleware"); - } - - /// - /// '{0}' requires the response cache middleware. - /// - internal static string FormatVaryByQueryKeys_Requires_ResponseCachingMiddleware(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("VaryByQueryKeys_Requires_ResponseCachingMiddleware"), p0); - - /// - /// A duplicate entry for library reference {0} was found. Please check that all package references in all projects use the same casing for the same package references. - /// - internal static string CandidateResolver_DifferentCasedReference - { - get => GetString("CandidateResolver_DifferentCasedReference"); - } - - /// - /// A duplicate entry for library reference {0} was found. Please check that all package references in all projects use the same casing for the same package references. - /// - internal static string FormatCandidateResolver_DifferentCasedReference(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CandidateResolver_DifferentCasedReference"), p0); - - /// - /// Unable to create an instance of type '{0}'. The type specified in {1} must not be abstract and must have a parameterless constructor. - /// - internal static string MiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType - { - get => GetString("MiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType"); - } - - /// - /// Unable to create an instance of type '{0}'. The type specified in {1} must not be abstract and must have a parameterless constructor. - /// - internal static string FormatMiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("MiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType"), p0, p1); - - /// - /// '{0}' and '{1}' are out of bounds for the string. - /// - internal static string Argument_InvalidOffsetLength - { - get => GetString("Argument_InvalidOffsetLength"); - } - - /// - /// '{0}' and '{1}' are out of bounds for the string. - /// - internal static string FormatArgument_InvalidOffsetLength(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Argument_InvalidOffsetLength"), p0, p1); - - /// - /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. - /// - internal static string ComplexTypeModelBinder_NoParameterlessConstructor_ForType - { - get => GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForType"); - } - - /// - /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. - /// - internal static string FormatComplexTypeModelBinder_NoParameterlessConstructor_ForType(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForType"), p0); - - /// - /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. Alternatively, set the '{1}' property to a non-null value in the '{2}' constructor. - /// - internal static string ComplexTypeModelBinder_NoParameterlessConstructor_ForProperty - { - get => GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForProperty"); - } - - /// - /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. Alternatively, set the '{1}' property to a non-null value in the '{2}' constructor. - /// - internal static string FormatComplexTypeModelBinder_NoParameterlessConstructor_ForProperty(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForProperty"), p0, p1, p2); - - /// - /// No page named '{0}' matches the supplied values. - /// - internal static string NoRoutesMatchedForPage - { - get => GetString("NoRoutesMatchedForPage"); - } - - /// - /// No page named '{0}' matches the supplied values. - /// - internal static string FormatNoRoutesMatchedForPage(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("NoRoutesMatchedForPage"), p0); - - /// - /// The relative page path '{0}' can only be used while executing a Razor Page. Specify a root relative path with a leading '/' to generate a URL outside of a Razor Page. If you are using {1} then you must provide the current {2} to use relative pages. - /// - internal static string UrlHelper_RelativePagePathIsNotSupported - { - get => GetString("UrlHelper_RelativePagePathIsNotSupported"); - } - - /// - /// The relative page path '{0}' can only be used while executing a Razor Page. Specify a root relative path with a leading '/' to generate a URL outside of a Razor Page. If you are using {1} then you must provide the current {2} to use relative pages. - /// - internal static string FormatUrlHelper_RelativePagePathIsNotSupported(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("UrlHelper_RelativePagePathIsNotSupported"), p0, p1, p2); - - /// - /// One or more validation errors occurred. - /// - internal static string ValidationProblemDescription_Title - { - get => GetString("ValidationProblemDescription_Title"); - } - - /// - /// One or more validation errors occurred. - /// - internal static string FormatValidationProblemDescription_Title() - => GetString("ValidationProblemDescription_Title"); - - /// - /// Action '{0}' does not have an attribute route. Action methods on controllers annotated with {1} must be attribute routed. - /// - internal static string ApiController_AttributeRouteRequired - { - get => GetString("ApiController_AttributeRouteRequired"); - } - - /// - /// Action '{0}' does not have an attribute route. Action methods on controllers annotated with {1} must be attribute routed. - /// - internal static string FormatApiController_AttributeRouteRequired(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ApiController_AttributeRouteRequired"), p0, p1); - - /// - /// No file provider has been configured to process the supplied file. - /// - internal static string VirtualFileResultExecutor_NoFileProviderConfigured - { - get => GetString("VirtualFileResultExecutor_NoFileProviderConfigured"); - } - - /// - /// No file provider has been configured to process the supplied file. - /// - internal static string FormatVirtualFileResultExecutor_NoFileProviderConfigured() - => GetString("VirtualFileResultExecutor_NoFileProviderConfigured"); - - /// - /// Type {0} specified by {1} is invalid. Type specified by {1} must derive from {2}. - /// - internal static string ApplicationPartFactory_InvalidFactoryType - { - get => GetString("ApplicationPartFactory_InvalidFactoryType"); - } - - /// - /// Type {0} specified by {1} is invalid. Type specified by {1} must derive from {2}. - /// - internal static string FormatApplicationPartFactory_InvalidFactoryType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ApplicationPartFactory_InvalidFactoryType"), p0, p1, p2); - - /// - /// {0} specified on {1} cannot be self referential. - /// - internal static string RelatedAssemblyAttribute_AssemblyCannotReferenceSelf - { - get => GetString("RelatedAssemblyAttribute_AssemblyCannotReferenceSelf"); - } - - /// - /// {0} specified on {1} cannot be self referential. - /// - internal static string FormatRelatedAssemblyAttribute_AssemblyCannotReferenceSelf(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("RelatedAssemblyAttribute_AssemblyCannotReferenceSelf"), p0, p1); - - /// - /// Related assembly '{0}' specified by assembly '{1}' could not be found in the directory {2}. Related assemblies must be co-located with the specifying assemblies. - /// - internal static string RelatedAssemblyAttribute_CouldNotBeFound - { - get => GetString("RelatedAssemblyAttribute_CouldNotBeFound"); - } - - /// - /// Related assembly '{0}' specified by assembly '{1}' could not be found in the directory {2}. Related assemblies must be co-located with the specifying assemblies. - /// - internal static string FormatRelatedAssemblyAttribute_CouldNotBeFound(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("RelatedAssemblyAttribute_CouldNotBeFound"), p0, p1, p2); - - /// - /// Each related assembly must be declared by exactly one assembly. The assembly '{0}' was declared as related assembly by the following: - /// - internal static string ApplicationAssembliesProvider_DuplicateRelatedAssembly - { - get => GetString("ApplicationAssembliesProvider_DuplicateRelatedAssembly"); - } - - /// - /// Each related assembly must be declared by exactly one assembly. The assembly '{0}' was declared as related assembly by the following: - /// - internal static string FormatApplicationAssembliesProvider_DuplicateRelatedAssembly(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ApplicationAssembliesProvider_DuplicateRelatedAssembly"), p0); - - /// - /// Assembly '{0}' declared as a related assembly by assembly '{1}' cannot define additional related assemblies. - /// - internal static string ApplicationAssembliesProvider_RelatedAssemblyCannotDefineAdditional - { - get => GetString("ApplicationAssembliesProvider_RelatedAssemblyCannotDefineAdditional"); - } - - /// - /// Assembly '{0}' declared as a related assembly by assembly '{1}' cannot define additional related assemblies. - /// - internal static string FormatApplicationAssembliesProvider_RelatedAssemblyCannotDefineAdditional(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ApplicationAssembliesProvider_RelatedAssemblyCannotDefineAdditional"), p0, p1); - - /// - /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. Alternatively, give the '{1}' parameter a non-null default value. - /// - internal static string ComplexTypeModelBinder_NoParameterlessConstructor_ForParameter - { - get => GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForParameter"); - } - - /// - /// Could not create an instance of type '{0}'. Model bound complex types must not be abstract or value types and must have a parameterless constructor. Alternatively, give the '{1}' parameter a non-null default value. - /// - internal static string FormatComplexTypeModelBinder_NoParameterlessConstructor_ForParameter(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ComplexTypeModelBinder_NoParameterlessConstructor_ForParameter"), p0, p1); - - /// - /// Action '{0}' has more than one parameter that was specified or inferred as bound from request body. Only one parameter per action may be bound from body. Inspect the following parameters, and use '{1}' to specify bound from query, '{2}' to specify bound from route, and '{3}' for parameters to be bound from body: - /// - internal static string ApiController_MultipleBodyParametersFound - { - get => GetString("ApiController_MultipleBodyParametersFound"); - } - - /// - /// Action '{0}' has more than one parameter that was specified or inferred as bound from request body. Only one parameter per action may be bound from body. Inspect the following parameters, and use '{1}' to specify bound from query, '{2}' to specify bound from route, and '{3}' for parameters to be bound from body: - /// - internal static string FormatApiController_MultipleBodyParametersFound(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("ApiController_MultipleBodyParametersFound"), p0, p1, p2, p3); - - /// - /// API convention type '{0}' must be a static type. - /// - internal static string ApiConventionMustBeStatic - { - get => GetString("ApiConventionMustBeStatic"); - } - - /// - /// API convention type '{0}' must be a static type. - /// - internal static string FormatApiConventionMustBeStatic(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ApiConventionMustBeStatic"), p0); - - /// - /// Invalid type parameter '{0}' specified for '{1}'. - /// - internal static string InvalidTypeTForActionResultOfT - { - get => GetString("InvalidTypeTForActionResultOfT"); - } - - /// - /// Invalid type parameter '{0}' specified for '{1}'. - /// - internal static string FormatInvalidTypeTForActionResultOfT(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidTypeTForActionResultOfT"), p0, p1); - - /// - /// Method {0} is decorated with the following attributes that are not allowed on an API convention method:{1}The following attributes are allowed on API convention methods: {2}. - /// - internal static string ApiConvention_UnsupportedAttributesOnConvention - { - get => GetString("ApiConvention_UnsupportedAttributesOnConvention"); - } - - /// - /// Method {0} is decorated with the following attributes that are not allowed on an API convention method:{1}The following attributes are allowed on API convention methods: {2}. - /// - internal static string FormatApiConvention_UnsupportedAttributesOnConvention(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ApiConvention_UnsupportedAttributesOnConvention"), p0, p1, p2); - - /// - /// Method name '{0}' is ambiguous for convention type '{1}'. More than one method found with the name '{0}'. - /// - internal static string ApiConventionMethod_AmbiguousMethodName - { - get => GetString("ApiConventionMethod_AmbiguousMethodName"); - } - - /// - /// Method name '{0}' is ambiguous for convention type '{1}'. More than one method found with the name '{0}'. - /// - internal static string FormatApiConventionMethod_AmbiguousMethodName(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ApiConventionMethod_AmbiguousMethodName"), p0, p1); - - /// - /// A method named '{0}' was not found on convention type '{1}'. - /// - internal static string ApiConventionMethod_NoMethodFound - { - get => GetString("ApiConventionMethod_NoMethodFound"); - } - - /// - /// A method named '{0}' was not found on convention type '{1}'. - /// - internal static string FormatApiConventionMethod_NoMethodFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ApiConventionMethod_NoMethodFound"), p0, p1); - - /// - /// {0} exceeded the maximum configured validation depth '{1}' when validating type '{2}'. - /// - internal static string ValidationVisitor_ExceededMaxDepth - { - get => GetString("ValidationVisitor_ExceededMaxDepth"); - } - - /// - /// {0} exceeded the maximum configured validation depth '{1}' when validating type '{2}'. - /// - internal static string FormatValidationVisitor_ExceededMaxDepth(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ValidationVisitor_ExceededMaxDepth"), p0, p1, p2); - - /// - /// This may indicate a very deep or infinitely recursive object graph. Consider modifying '{0}.{1}' or suppressing validation on the model type. - /// - internal static string ValidationVisitor_ExceededMaxDepthFix - { - get => GetString("ValidationVisitor_ExceededMaxDepthFix"); - } - - /// - /// This may indicate a very deep or infinitely recursive object graph. Consider modifying '{0}.{1}' or suppressing validation on the model type. - /// - internal static string FormatValidationVisitor_ExceededMaxDepthFix(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ValidationVisitor_ExceededMaxDepthFix"), p0, p1); - - /// - /// {0} exceeded the maximum configured validation depth '{1}' when validating property '{2}' on type '{3}'. - /// - internal static string ValidationVisitor_ExceededMaxPropertyDepth - { - get => GetString("ValidationVisitor_ExceededMaxPropertyDepth"); - } - - /// - /// {0} exceeded the maximum configured validation depth '{1}' when validating property '{2}' on type '{3}'. - /// - internal static string FormatValidationVisitor_ExceededMaxPropertyDepth(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("ValidationVisitor_ExceededMaxPropertyDepth"), p0, p1, p2, p3); - - /// - /// Bad Request - /// - internal static string ApiConventions_Title_400 - { - get => GetString("ApiConventions_Title_400"); - } - - /// - /// Bad Request - /// - internal static string FormatApiConventions_Title_400() - => GetString("ApiConventions_Title_400"); - - /// - /// Unauthorized - /// - internal static string ApiConventions_Title_401 - { - get => GetString("ApiConventions_Title_401"); - } - - /// - /// Unauthorized - /// - internal static string FormatApiConventions_Title_401() - => GetString("ApiConventions_Title_401"); - - /// - /// Forbidden - /// - internal static string ApiConventions_Title_403 - { - get => GetString("ApiConventions_Title_403"); - } - - /// - /// Forbidden - /// - internal static string FormatApiConventions_Title_403() - => GetString("ApiConventions_Title_403"); - - /// - /// Not Found - /// - internal static string ApiConventions_Title_404 - { - get => GetString("ApiConventions_Title_404"); - } - - /// - /// Not Found - /// - internal static string FormatApiConventions_Title_404() - => GetString("ApiConventions_Title_404"); - - /// - /// Not Acceptable - /// - internal static string ApiConventions_Title_406 - { - get => GetString("ApiConventions_Title_406"); - } - - /// - /// Not Acceptable - /// - internal static string FormatApiConventions_Title_406() - => GetString("ApiConventions_Title_406"); - - /// - /// Conflict - /// - internal static string ApiConventions_Title_409 - { - get => GetString("ApiConventions_Title_409"); - } - - /// - /// Conflict - /// - internal static string FormatApiConventions_Title_409() - => GetString("ApiConventions_Title_409"); - - /// - /// Unsupported Media Type - /// - internal static string ApiConventions_Title_415 - { - get => GetString("ApiConventions_Title_415"); - } - - /// - /// Unsupported Media Type - /// - internal static string FormatApiConventions_Title_415() - => GetString("ApiConventions_Title_415"); - - /// - /// Unprocessable Entity - /// - internal static string ApiConventions_Title_422 - { - get => GetString("ApiConventions_Title_422"); - } - - /// - /// Unprocessable Entity - /// - internal static string FormatApiConventions_Title_422() - => GetString("ApiConventions_Title_422"); - - /// - /// '{0}' requires a reference to '{1}'. Configure your application by adding a reference to the '{1}' package and calling '{2}.{3}' inside the call to '{4}' in the application startup code. - /// - internal static string ReferenceToNewtonsoftJsonRequired - { - get => GetString("ReferenceToNewtonsoftJsonRequired"); - } - - /// - /// '{0}' requires a reference to '{1}'. Configure your application by adding a reference to the '{1}' package and calling '{2}.{3}' inside the call to '{4}' in the application startup code. - /// - internal static string FormatReferenceToNewtonsoftJsonRequired(object p0, object p1, object p2, object p3, object p4) - => string.Format(CultureInfo.CurrentCulture, GetString("ReferenceToNewtonsoftJsonRequired"), p0, p1, p2, p3, p4); - - /// - /// Collection bound to '{0}' exceeded {1}.{2} ({3}). This limit is a safeguard against incorrect model binders and models. Address issues in '{4}'. For example, this type may have a property with a model binder that always succeeds. See the {1}.{2} documentation for more information. - /// - internal static string ModelBinding_ExceededMaxModelBindingCollectionSize - { - get => GetString("ModelBinding_ExceededMaxModelBindingCollectionSize"); - } - - /// - /// Collection bound to '{0}' exceeded {1}.{2} ({3}). This limit is a safeguard against incorrect model binders and models. Address issues in '{4}'. For example, this type may have a property with a model binder that always succeeds. See the {1}.{2} documentation for more information. - /// - internal static string FormatModelBinding_ExceededMaxModelBindingCollectionSize(object p0, object p1, object p2, object p3, object p4) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinding_ExceededMaxModelBindingCollectionSize"), p0, p1, p2, p3, p4); - - /// - /// Model binding system exceeded {0}.{1} ({2}). Reduce the potential nesting of '{3}'. For example, this type may have a property with a model binder that always succeeds. See the {0}.{1} documentation for more information. - /// - internal static string ModelBinding_ExceededMaxModelBindingRecursionDepth - { - get => GetString("ModelBinding_ExceededMaxModelBindingRecursionDepth"); - } - - /// - /// Model binding system exceeded {0}.{1} ({2}). Reduce the potential nesting of '{3}'. For example, this type may have a property with a model binder that always succeeds. See the {0}.{1} documentation for more information. - /// - internal static string FormatModelBinding_ExceededMaxModelBindingRecursionDepth(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("ModelBinding_ExceededMaxModelBindingRecursionDepth"), p0, p1, p2, p3); - - /// - /// Property '{0}.{1}' must be an instance of type '{2}'. - /// - internal static string Property_MustBeInstanceOfType - { - get => GetString("Property_MustBeInstanceOfType"); - } - - /// - /// Property '{0}.{1}' must be an instance of type '{2}'. - /// - internal static string FormatProperty_MustBeInstanceOfType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("Property_MustBeInstanceOfType"), p0, p1, p2); - - /// - /// '{0}' reached the configured maximum size of the buffer when enumerating a value of type `{1}'. This limit is in place to prevent infinite streams of `IAsyncEnumerable` from continuing indefinitely. If this is not a programming mistake, consider ways to reduce the collection size, or consider manually converting '{1}' into a list rather than increasing the limit. - /// - internal static string ObjectResultExecutor_MaxEnumerationExceeded - { - get => GetString("ObjectResultExecutor_MaxEnumerationExceeded"); - } - - /// - /// '{0}' reached the configured maximum size of the buffer when enumerating a value of type `{1}'. This limit is in place to prevent infinite streams of `IAsyncEnumerable` from continuing indefinitely. If this is not a programming mistake, consider ways to reduce the collection size, or consider manually converting '{1}' into a list rather than increasing the limit. - /// - internal static string FormatObjectResultExecutor_MaxEnumerationExceeded(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ObjectResultExecutor_MaxEnumerationExceeded"), p0, p1); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.Cors/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.Cors/src/Properties/Resources.Designer.cs deleted file mode 100644 index fe4a772e37..0000000000 --- a/src/Mvc/Mvc.Cors/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Cors -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Cors.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// A CORS policy named '{0}' could not be found. - /// - internal static string CorsAuthorizationFilter_MissingCorsPolicy - { - get => GetString("CorsAuthorizationFilter_MissingCorsPolicy"); - } - - /// - /// A CORS policy named '{0}' could not be found. - /// - internal static string FormatCorsAuthorizationFilter_MissingCorsPolicy(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("CorsAuthorizationFilter_MissingCorsPolicy"), p0); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.DataAnnotations/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.DataAnnotations/src/Properties/Resources.Designer.cs deleted file mode 100644 index 30ce539240..0000000000 --- a/src/Mvc/Mvc.DataAnnotations/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.DataAnnotations -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.DataAnnotations.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The model object inside the metadata claimed to be compatible with '{0}', but was actually '{1}'. - /// - internal static string ValidatableObjectAdapter_IncompatibleType - { - get => GetString("ValidatableObjectAdapter_IncompatibleType"); - } - - /// - /// The model object inside the metadata claimed to be compatible with '{0}', but was actually '{1}'. - /// - internal static string FormatValidatableObjectAdapter_IncompatibleType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ValidatableObjectAdapter_IncompatibleType"), p0, p1); - - /// - /// Value cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string PropertyOfTypeCannotBeNull - { - get => GetString("PropertyOfTypeCannotBeNull"); - } - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.DataAnnotations/test/Properties/Resources.Designer.cs b/src/Mvc/Mvc.DataAnnotations/test/Properties/Resources.Designer.cs deleted file mode 100644 index 06beda8093..0000000000 --- a/src/Mvc/Mvc.DataAnnotations/test/Properties/Resources.Designer.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.DataAnnotations.Test -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.DataAnnotations.Test.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Comparing {0} to {1}. - /// - internal static string CompareAttributeTestResource - { - get => GetString("CompareAttributeTestResource"); - } - - /// - /// Comparing {0} to {1}. - /// - internal static string FormatCompareAttributeTestResource(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("CompareAttributeTestResource"), p0, p1); - - /// - /// description from resources - /// - internal static string DisplayAttribute_Description - { - get => GetString("DisplayAttribute_Description"); - } - - /// - /// description from resources - /// - internal static string FormatDisplayAttribute_Description() - => GetString("DisplayAttribute_Description"); - - /// - /// name from resources - /// - internal static string DisplayAttribute_Name - { - get => GetString("DisplayAttribute_Name"); - } - - /// - /// name from resources - /// - internal static string FormatDisplayAttribute_Name() - => GetString("DisplayAttribute_Name"); - - /// - /// prompt from resources - /// - internal static string DisplayAttribute_Prompt - { - get => GetString("DisplayAttribute_Prompt"); - } - - /// - /// prompt from resources - /// - internal static string FormatDisplayAttribute_Prompt() - => GetString("DisplayAttribute_Prompt"); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.Formatters.Xml/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.Formatters.Xml/src/Properties/Resources.Designer.cs deleted file mode 100644 index 94864035dd..0000000000 --- a/src/Mvc/Mvc.Formatters.Xml/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Formatters.Xml -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Formatters.Xml.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The type must be an interface and must be or derive from '{0}'. - /// - internal static string EnumerableWrapperProvider_InvalidSourceEnumerableOfT - { - get => GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"); - } - - /// - /// The type must be an interface and must be or derive from '{0}'. - /// - internal static string FormatEnumerableWrapperProvider_InvalidSourceEnumerableOfT(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("EnumerableWrapperProvider_InvalidSourceEnumerableOfT"), p0); - - /// - /// An error occurred while deserializing input data. - /// - internal static string ErrorDeserializingInputData - { - get => GetString("ErrorDeserializingInputData"); - } - - /// - /// An error occurred while deserializing input data. - /// - internal static string FormatErrorDeserializingInputData() - => GetString("ErrorDeserializingInputData"); - - /// - /// {0} does not recognize '{1}', so instead use '{2}' with '{3}' set to '{4}' for value type property '{5}' on type '{6}'. - /// - internal static string RequiredProperty_MustHaveDataMemberRequired - { - get => GetString("RequiredProperty_MustHaveDataMemberRequired"); - } - - /// - /// {0} does not recognize '{1}', so instead use '{2}' with '{3}' set to '{4}' for value type property '{5}' on type '{6}'. - /// - internal static string FormatRequiredProperty_MustHaveDataMemberRequired(object p0, object p1, object p2, object p3, object p4, object p5, object p6) - => string.Format(CultureInfo.CurrentCulture, GetString("RequiredProperty_MustHaveDataMemberRequired"), p0, p1, p2, p3, p4, p5, p6); - - /// - /// The object to be wrapped must be of type '{0}' but was of type '{1}'. - /// - internal static string WrapperProvider_MismatchType - { - get => GetString("WrapperProvider_MismatchType"); - } - - /// - /// The object to be wrapped must be of type '{0}' but was of type '{1}'. - /// - internal static string FormatWrapperProvider_MismatchType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("WrapperProvider_MismatchType"), p0, p1); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.NewtonsoftJson/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.NewtonsoftJson/src/Properties/Resources.Designer.cs deleted file mode 100644 index 82aedac1ec..0000000000 --- a/src/Mvc/Mvc.NewtonsoftJson/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.NewtonsoftJson -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.NewtonsoftJson.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// {0} cannot be null. - /// - internal static string ContractResolverCannotBeNull - { - get => GetString("ContractResolverCannotBeNull"); - } - - /// - /// {0} cannot be null. - /// - internal static string FormatContractResolverCannotBeNull(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ContractResolverCannotBeNull"), p0); - - /// - /// Cannot configure JSON casing behavior on '{0}' contract resolver. The supported contract resolver is {1}. - /// - internal static string InvalidContractResolverForJsonCasingConfiguration - { - get => GetString("InvalidContractResolverForJsonCasingConfiguration"); - } - - /// - /// Cannot configure JSON casing behavior on '{0}' contract resolver. The supported contract resolver is {1}. - /// - internal static string FormatInvalidContractResolverForJsonCasingConfiguration(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidContractResolverForJsonCasingConfiguration"), p0, p1); - - /// - /// Parameter '{0}' must be an instance of {1} provided by the '{2}' package. Configure the correct instance using '{3}' in your startup. - /// - internal static string JsonHelperMustBeAnInstanceOfNewtonsoftJson - { - get => GetString("JsonHelperMustBeAnInstanceOfNewtonsoftJson"); - } - - /// - /// Parameter '{0}' must be an instance of {1} provided by the '{2}' package. Configure the correct instance using '{3}' in your startup. - /// - internal static string FormatJsonHelperMustBeAnInstanceOfNewtonsoftJson(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("JsonHelperMustBeAnInstanceOfNewtonsoftJson"), p0, p1, p2, p3); - - /// - /// Property '{0}.{1}' must be an instance of type '{2}'. - /// - internal static string Property_MustBeInstanceOfType - { - get => GetString("Property_MustBeInstanceOfType"); - } - - /// - /// Property '{0}.{1}' must be an instance of type '{2}'. - /// - internal static string FormatProperty_MustBeInstanceOfType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("Property_MustBeInstanceOfType"), p0, p1, p2); - - /// - /// Cannot deserialize {0} of type '{1}'. - /// - internal static string TempData_CannotDeserializeToken - { - get => GetString("TempData_CannotDeserializeToken"); - } - - /// - /// Cannot deserialize {0} of type '{1}'. - /// - internal static string FormatTempData_CannotDeserializeToken(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TempData_CannotDeserializeToken"), p0, p1); - - /// - /// The '{0}' cannot serialize a dictionary with a key of type '{1}'. The key must be of type '{2}'. - /// - internal static string TempData_CannotSerializeDictionary - { - get => GetString("TempData_CannotSerializeDictionary"); - } - - /// - /// The '{0}' cannot serialize a dictionary with a key of type '{1}'. The key must be of type '{2}'. - /// - internal static string FormatTempData_CannotSerializeDictionary(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("TempData_CannotSerializeDictionary"), p0, p1, p2); - - /// - /// The '{0}' cannot serialize an object of type '{1}'. - /// - internal static string TempData_CannotSerializeType - { - get => GetString("TempData_CannotSerializeType"); - } - - /// - /// The '{0}' cannot serialize an object of type '{1}'. - /// - internal static string FormatTempData_CannotSerializeType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TempData_CannotSerializeType"), p0, p1); - - /// - /// '{0}' reached the configured maximum size of the buffer when enumerating a value of type `{1}'. This limit is in place to prevent infinite streams of `IAsyncEnumerable` from continuing indefinitely. If this is not a programming mistake, consider ways to reduce the collection size, or consider manually converting '{1}' into a list rather than increasing the limit. - /// - internal static string ObjectResultExecutor_MaxEnumerationExceeded - { - get => GetString("ObjectResultExecutor_MaxEnumerationExceeded"); - } - - /// - /// '{0}' reached the configured maximum size of the buffer when enumerating a value of type `{1}'. This limit is in place to prevent infinite streams of `IAsyncEnumerable` from continuing indefinitely. If this is not a programming mistake, consider ways to reduce the collection size, or consider manually converting '{1}' into a list rather than increasing the limit. - /// - internal static string FormatObjectResultExecutor_MaxEnumerationExceeded(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ObjectResultExecutor_MaxEnumerationExceeded"), p0, p1); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.Razor.RuntimeCompilation/src/Properties/Resources.Designer.cs deleted file mode 100644 index ce4fec5608..0000000000 --- a/src/Mvc/Mvc.Razor.RuntimeCompilation/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// One or more compilation failures occurred: - /// - internal static string CompilationFailed - { - get => GetString("CompilationFailed"); - } - - /// - /// One or more compilation failures occurred: - /// - internal static string FormatCompilationFailed() - => GetString("CompilationFailed"); - - /// - /// One or more compilation references may be missing. If you're seeing this in a published application, set '{0}' to true in your project file to ensure files in the refs directory are published. - /// - internal static string Compilation_MissingReferences - { - get => GetString("Compilation_MissingReferences"); - } - - /// - /// One or more compilation references may be missing. If you're seeing this in a published application, set '{0}' to true in your project file to ensure files in the refs directory are published. - /// - internal static string FormatCompilation_MissingReferences(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Compilation_MissingReferences"), p0); - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. - /// - internal static string FileProvidersAreRequired - { - get => GetString("FileProvidersAreRequired"); - } - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. - /// - internal static string FormatFileProvidersAreRequired(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("FileProvidersAreRequired"), p0, p1, p2); - - /// - /// Generated Code - /// - internal static string GeneratedCodeFileName - { - get => GetString("GeneratedCodeFileName"); - } - - /// - /// Generated Code - /// - internal static string FormatGeneratedCodeFileName() - => GetString("GeneratedCodeFileName"); - - /// - /// The debug type specified in the dependency context could be parsed. The debug type value '{0}' is not supported. - /// - internal static string UnsupportedDebugInformationFormat - { - get => GetString("UnsupportedDebugInformationFormat"); - } - - /// - /// The debug type specified in the dependency context could be parsed. The debug type value '{0}' is not supported. - /// - internal static string FormatUnsupportedDebugInformationFormat(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedDebugInformationFormat"), p0); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.Razor/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.Razor/src/Properties/Resources.Designer.cs deleted file mode 100644 index a2e6436e78..0000000000 --- a/src/Mvc/Mvc.Razor/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,412 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Razor -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Razor.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Value cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - /// - /// One or more compilation failures occurred: - /// - internal static string CompilationFailed - { - get => GetString("CompilationFailed"); - } - - /// - /// One or more compilation failures occurred: - /// - internal static string FormatCompilationFailed() - => GetString("CompilationFailed"); - - /// - /// '{0}' cannot be invoked when a Layout page is set to be executed. - /// - internal static string FlushPointCannotBeInvoked - { - get => GetString("FlushPointCannotBeInvoked"); - } - - /// - /// '{0}' cannot be invoked when a Layout page is set to be executed. - /// - internal static string FormatFlushPointCannotBeInvoked(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("FlushPointCannotBeInvoked"), p0); - - /// - /// The layout view '{0}' could not be located. The following locations were searched:{1} - /// - internal static string LayoutCannotBeLocated - { - get => GetString("LayoutCannotBeLocated"); - } - - /// - /// The layout view '{0}' could not be located. The following locations were searched:{1} - /// - internal static string FormatLayoutCannotBeLocated(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeLocated"), p0, p1); - - /// - /// Layout page '{0}' cannot be rendered after '{1}' has been invoked. - /// - internal static string LayoutCannotBeRendered - { - get => GetString("LayoutCannotBeRendered"); - } - - /// - /// Layout page '{0}' cannot be rendered after '{1}' has been invoked. - /// - internal static string FormatLayoutCannotBeRendered(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("LayoutCannotBeRendered"), p0, p1); - - /// - /// There is no active writing scope to end. - /// - internal static string RazorPage_ThereIsNoActiveWritingScopeToEnd - { - get => GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); - } - - /// - /// There is no active writing scope to end. - /// - internal static string FormatRazorPage_ThereIsNoActiveWritingScopeToEnd() - => GetString("RazorPage_ThereIsNoActiveWritingScopeToEnd"); - - /// - /// The {0} operation cannot be performed while inside a writing scope in '{1}'. - /// - internal static string RazorPage_CannotFlushWhileInAWritingScope - { - get => GetString("RazorPage_CannotFlushWhileInAWritingScope"); - } - - /// - /// The {0} operation cannot be performed while inside a writing scope in '{1}'. - /// - internal static string FormatRazorPage_CannotFlushWhileInAWritingScope(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_CannotFlushWhileInAWritingScope"), p0, p1); - - /// - /// {0} invocation in '{1}' is invalid. {0} can only be called from a layout page. - /// - internal static string RazorPage_MethodCannotBeCalled - { - get => GetString("RazorPage_MethodCannotBeCalled"); - } - - /// - /// {0} invocation in '{1}' is invalid. {0} can only be called from a layout page. - /// - internal static string FormatRazorPage_MethodCannotBeCalled(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_MethodCannotBeCalled"), p0, p1); - - /// - /// {0} has not been called for the page at '{1}'. To ignore call {2}(). - /// - internal static string RenderBodyNotCalled - { - get => GetString("RenderBodyNotCalled"); - } - - /// - /// {0} has not been called for the page at '{1}'. To ignore call {2}(). - /// - internal static string FormatRenderBodyNotCalled(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("RenderBodyNotCalled"), p0, p1, p2); - - /// - /// Section '{0}' is already defined. - /// - internal static string SectionAlreadyDefined - { - get => GetString("SectionAlreadyDefined"); - } - - /// - /// Section '{0}' is already defined. - /// - internal static string FormatSectionAlreadyDefined(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyDefined"), p0); - - /// - /// {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered. - /// - internal static string SectionAlreadyRendered - { - get => GetString("SectionAlreadyRendered"); - } - - /// - /// {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered. - /// - internal static string FormatSectionAlreadyRendered(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("SectionAlreadyRendered"), p0, p1, p2); - - /// - /// The layout page '{0}' cannot find the section '{1}' in the content page '{2}'. - /// - internal static string SectionNotDefined - { - get => GetString("SectionNotDefined"); - } - - /// - /// The layout page '{0}' cannot find the section '{1}' in the content page '{2}'. - /// - internal static string FormatSectionNotDefined(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("SectionNotDefined"), p0, p1, p2); - - /// - /// The following sections have been defined but have not been rendered by the page at '{0}': '{1}'. To ignore an unrendered section call {2}("sectionName"). - /// - internal static string SectionsNotRendered - { - get => GetString("SectionsNotRendered"); - } - - /// - /// The following sections have been defined but have not been rendered by the page at '{0}': '{1}'. To ignore an unrendered section call {2}("sectionName"). - /// - internal static string FormatSectionsNotRendered(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("SectionsNotRendered"), p0, p1, p2); - - /// - /// '{0} must be set to access '{1}'. - /// - internal static string ViewContextMustBeSet - { - get => GetString("ViewContextMustBeSet"); - } - - /// - /// '{0} must be set to access '{1}'. - /// - internal static string FormatViewContextMustBeSet(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewContextMustBeSet"), p0, p1); - - /// - /// Generated Code - /// - internal static string GeneratedCodeFileName - { - get => GetString("GeneratedCodeFileName"); - } - - /// - /// Generated Code - /// - internal static string FormatGeneratedCodeFileName() - => GetString("GeneratedCodeFileName"); - - /// - /// Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null. - /// - internal static string RazorPage_InvalidTagHelperIndexerAssignment - { - get => GetString("RazorPage_InvalidTagHelperIndexerAssignment"); - } - - /// - /// Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null. - /// - internal static string FormatRazorPage_InvalidTagHelperIndexerAssignment(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("RazorPage_InvalidTagHelperIndexerAssignment"), p0, p1, p2); - - /// - /// Unexpected return value from '{1}.{2}' for URL '{0}'. If the '{1}' service has been overridden, change '{2}' to replace only the '~/' prefix. Otherwise, add the following directive to the Razor page to disable URL resolution relative to the application's 'webroot' setting: - /// - /// @{3} "{4}, {5}" - /// - internal static string CouldNotResolveApplicationRelativeUrl_TagHelper - { - get => GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"); - } - - /// - /// Unexpected return value from '{1}.{2}' for URL '{0}'. If the '{1}' service has been overridden, change '{2}' to replace only the '~/' prefix. Otherwise, add the following directive to the Razor page to disable URL resolution relative to the application's 'webroot' setting: - /// - /// @{3} "{4}, {5}" - /// - internal static string FormatCouldNotResolveApplicationRelativeUrl_TagHelper(object p0, object p1, object p2, object p3, object p4, object p5) - => string.Format(CultureInfo.CurrentCulture, GetString("CouldNotResolveApplicationRelativeUrl_TagHelper"), p0, p1, p2, p3, p4, p5); - - /// - /// A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered. - /// - internal static string LayoutHasCircularReference - { - get => GetString("LayoutHasCircularReference"); - } - - /// - /// A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered. - /// - internal static string FormatLayoutHasCircularReference(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("LayoutHasCircularReference"), p0, p1); - - /// - /// One or more compilation references may be missing. If you're seeing this in a published application, set '{0}' to true in your project file to ensure files in the refs directory are published. - /// - internal static string Compilation_MissingReferences - { - get => GetString("Compilation_MissingReferences"); - } - - /// - /// One or more compilation references may be missing. If you're seeing this in a published application, set '{0}' to true in your project file to ensure files in the refs directory are published. - /// - internal static string FormatCompilation_MissingReferences(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Compilation_MissingReferences"), p0); - - /// - /// '{0}' cannot be empty. These locations are required to locate a view for rendering. - /// - internal static string ViewLocationFormatsIsRequired - { - get => GetString("ViewLocationFormatsIsRequired"); - } - - /// - /// '{0}' cannot be empty. These locations are required to locate a view for rendering. - /// - internal static string FormatViewLocationFormatsIsRequired(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewLocationFormatsIsRequired"), p0); - - /// - /// Nesting of TagHelper attribute writing scopes is not supported. - /// - internal static string RazorPage_NestingAttributeWritingScopesNotSupported - { - get => GetString("RazorPage_NestingAttributeWritingScopesNotSupported"); - } - - /// - /// Nesting of TagHelper attribute writing scopes is not supported. - /// - internal static string FormatRazorPage_NestingAttributeWritingScopesNotSupported() - => GetString("RazorPage_NestingAttributeWritingScopesNotSupported"); - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. - /// - internal static string FileProvidersAreRequired - { - get => GetString("FileProvidersAreRequired"); - } - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. - /// - internal static string FormatFileProvidersAreRequired(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("FileProvidersAreRequired"), p0, p1, p2); - - /// - /// Path must begin with a forward slash '/'. - /// - internal static string RazorProject_PathMustStartWithForwardSlash - { - get => GetString("RazorProject_PathMustStartWithForwardSlash"); - } - - /// - /// Path must begin with a forward slash '/'. - /// - internal static string FormatRazorProject_PathMustStartWithForwardSlash() - => GetString("RazorProject_PathMustStartWithForwardSlash"); - - /// - /// The property '{0}' of '{1}' must not be null. - /// - internal static string PropertyMustBeSet - { - get => GetString("PropertyMustBeSet"); - } - - /// - /// The property '{0}' of '{1}' must not be null. - /// - internal static string FormatPropertyMustBeSet(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PropertyMustBeSet"), p0, p1); - - /// - /// The following precompiled view paths differ only in case, which is not supported: - /// - internal static string RazorViewCompiler_ViewPathsDifferOnlyInCase - { - get => GetString("RazorViewCompiler_ViewPathsDifferOnlyInCase"); - } - - /// - /// The following precompiled view paths differ only in case, which is not supported: - /// - internal static string FormatRazorViewCompiler_ViewPathsDifferOnlyInCase() - => GetString("RazorViewCompiler_ViewPathsDifferOnlyInCase"); - - /// - /// The debug type specified in the dependency context could be parsed. The debug type value '{0}' is not supported. - /// - internal static string UnsupportedDebugInformationFormat - { - get => GetString("UnsupportedDebugInformationFormat"); - } - - /// - /// The debug type specified in the dependency context could be parsed. The debug type value '{0}' is not supported. - /// - internal static string FormatUnsupportedDebugInformationFormat(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedDebugInformationFormat"), p0); - - /// - /// At least one of the '{0}' or '{1}' values must be non-null. - /// - internal static string CompiledViewDescriptor_NoData - { - get => GetString("CompiledViewDescriptor_NoData"); - } - - /// - /// At least one of the '{0}' or '{1}' values must be non-null. - /// - internal static string FormatCompiledViewDescriptor_NoData(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("CompiledViewDescriptor_NoData"), p0, p1); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.RazorPages/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.RazorPages/src/Properties/Resources.Designer.cs deleted file mode 100644 index eec543945b..0000000000 --- a/src/Mvc/Mvc.RazorPages/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,198 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.RazorPages -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.RazorPages.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string PropertyOfTypeCannotBeNull - { - get => GetString("PropertyOfTypeCannotBeNull"); - } - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); - - /// - /// Page created by '{0}' must be an instance of '{1}'. - /// - internal static string ActivatedInstance_MustBeAnInstanceOf - { - get => GetString("ActivatedInstance_MustBeAnInstanceOf"); - } - - /// - /// Page created by '{0}' must be an instance of '{1}'. - /// - internal static string FormatActivatedInstance_MustBeAnInstanceOf(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ActivatedInstance_MustBeAnInstanceOf"), p0, p1); - - /// - /// The context used to execute '{0}' must be an instance of '{1}'. Returning a '{2}' from a controller is a not supported. - /// - internal static string PageViewResult_ContextIsInvalid - { - get => GetString("PageViewResult_ContextIsInvalid"); - } - - /// - /// The context used to execute '{0}' must be an instance of '{1}'. Returning a '{2}' from a controller is a not supported. - /// - internal static string FormatPageViewResult_ContextIsInvalid(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("PageViewResult_ContextIsInvalid"), p0, p1, p2); - - /// - /// Value cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - /// - /// Unsupported handler method return type '{0}'. - /// - internal static string UnsupportedHandlerMethodType - { - get => GetString("UnsupportedHandlerMethodType"); - } - - /// - /// Unsupported handler method return type '{0}'. - /// - internal static string FormatUnsupportedHandlerMethodType(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedHandlerMethodType"), p0); - - /// - /// Multiple handlers matched. The following handlers matched route data and had all constraints satisfied:{0}{0}{1} - /// - internal static string AmbiguousHandler - { - get => GetString("AmbiguousHandler"); - } - - /// - /// Multiple handlers matched. The following handlers matched route data and had all constraints satisfied:{0}{0}{1} - /// - internal static string FormatAmbiguousHandler(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("AmbiguousHandler"), p0, p1); - - /// - /// Path must be a root relative path that starts with a forward slash '/'. - /// - internal static string PathMustBeRootRelativePath - { - get => GetString("PathMustBeRootRelativePath"); - } - - /// - /// Path must be a root relative path that starts with a forward slash '/'. - /// - internal static string FormatPathMustBeRootRelativePath() - => GetString("PathMustBeRootRelativePath"); - - /// - /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. - /// - internal static string AsyncPageFilter_InvalidShortCircuit - { - get => GetString("AsyncPageFilter_InvalidShortCircuit"); - } - - /// - /// If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}. - /// - internal static string FormatAsyncPageFilter_InvalidShortCircuit(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("AsyncPageFilter_InvalidShortCircuit"), p0, p1, p2, p3); - - /// - /// The type '{0}' is not a valid page. A page must inherit from '{1}'. - /// - internal static string InvalidPageType_WrongBase - { - get => GetString("InvalidPageType_WrongBase"); - } - - /// - /// The type '{0}' is not a valid page. A page must inherit from '{1}'. - /// - internal static string FormatInvalidPageType_WrongBase(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidPageType_WrongBase"), p0, p1); - - /// - /// The type '{0}' is not a valid page. A page must define a public, non-static '{1}' property. - /// - internal static string InvalidPageType_NoModelProperty - { - get => GetString("InvalidPageType_NoModelProperty"); - } - - /// - /// The type '{0}' is not a valid page. A page must define a public, non-static '{1}' property. - /// - internal static string FormatInvalidPageType_NoModelProperty(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidPageType_NoModelProperty"), p0, p1); - - /// - /// '{0}' is not a valid page name. A page name is path relative to the Razor Pages root directory that starts with a leading forward slash ('/') and does not contain the file extension e.g "/Users/Edit". - /// - internal static string InvalidValidPageName - { - get => GetString("InvalidValidPageName"); - } - - /// - /// '{0}' is not a valid page name. A page name is path relative to the Razor Pages root directory that starts with a leading forward slash ('/') and does not contain the file extension e.g "/Users/Edit". - /// - internal static string FormatInvalidValidPageName(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidValidPageName"), p0); - - /// - /// The model type for '{0}' is of type '{1}' which is not assignable to its declared model type '{2}'. - /// - internal static string InvalidActionDescriptorModelType - { - get => GetString("InvalidActionDescriptorModelType"); - } - - /// - /// The model type for '{0}' is of type '{1}' which is not assignable to its declared model type '{2}'. - /// - internal static string FormatInvalidActionDescriptorModelType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidActionDescriptorModelType"), 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; - } - } -} diff --git a/src/Mvc/Mvc.TagHelpers/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.TagHelpers/src/Properties/Resources.Designer.cs deleted file mode 100644 index f5b5d8c690..0000000000 --- a/src/Mvc/Mvc.TagHelpers/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.TagHelpers -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.TagHelpers.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Cannot determine the '{0}' attribute for {1}. The following attributes are mutually exclusive: - /// - internal static string CannotDetermineAttributeFor - { - get => GetString("CannotDetermineAttributeFor"); - } - - /// - /// Cannot determine the '{0}' attribute for {1}. The following attributes are mutually exclusive: - /// - internal static string FormatCannotDetermineAttributeFor(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("CannotDetermineAttributeFor"), p0, p1); - - /// - /// Cannot override the '{0}' attribute for {1}. An {1} with a specified '{0}' must not have attributes starting with '{2}' or an '{3}', '{4}', '{5}', '{6}', '{7}', '{8}', '{9}', '{10}' or '{11}' attribute. - /// - internal static string AnchorTagHelper_CannotOverrideHref - { - get => GetString("AnchorTagHelper_CannotOverrideHref"); - } - - /// - /// Cannot override the '{0}' attribute for {1}. An {1} with a specified '{0}' must not have attributes starting with '{2}' or an '{3}', '{4}', '{5}', '{6}', '{7}', '{8}', '{9}', '{10}' or '{11}' attribute. - /// - internal static string FormatAnchorTagHelper_CannotOverrideHref(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7, object p8, object p9, object p10, object p11) - => string.Format(CultureInfo.CurrentCulture, GetString("AnchorTagHelper_CannotOverrideHref"), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); - - /// - /// Cannot override the '{0}' attribute for {1}. A {1} with a specified '{0}' must not have attributes starting with '{2}' or an '{3}', '{4}', '{5}', '{6}', '{7}', '{8}' or '{9}' attribute. - /// - internal static string FormTagHelper_CannotOverrideAction - { - get => GetString("FormTagHelper_CannotOverrideAction"); - } - - /// - /// Cannot override the '{0}' attribute for {1}. A {1} with a specified '{0}' must not have attributes starting with '{2}' or an '{3}', '{4}', '{5}', '{6}', '{7}', '{8}' or '{9}' attribute. - /// - internal static string FormatFormTagHelper_CannotOverrideAction(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7, object p8, object p9) - => string.Format(CultureInfo.CurrentCulture, GetString("FormTagHelper_CannotOverrideAction"), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); - - /// - /// Unexpected '{1}' expression result type '{2}' for {0}. '{1}' must be of type '{3}' or '{4}' that can be parsed as a '{3}' if '{5}' is '{6}'. - /// - internal static string InputTagHelper_InvalidExpressionResult - { - get => GetString("InputTagHelper_InvalidExpressionResult"); - } - - /// - /// Unexpected '{1}' expression result type '{2}' for {0}. '{1}' must be of type '{3}' or '{4}' that can be parsed as a '{3}' if '{5}' is '{6}'. - /// - internal static string FormatInputTagHelper_InvalidExpressionResult(object p0, object p1, object p2, object p3, object p4, object p5, object p6) - => string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_InvalidExpressionResult"), p0, p1, p2, p3, p4, p5, p6); - - /// - /// Unexpected expression result value '{1}' for {0}. '{1}' cannot be parsed as a '{2}'. - /// - internal static string InputTagHelper_InvalidStringResult - { - get => GetString("InputTagHelper_InvalidStringResult"); - } - - /// - /// Unexpected expression result value '{1}' for {0}. '{1}' cannot be parsed as a '{2}'. - /// - internal static string FormatInputTagHelper_InvalidStringResult(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_InvalidStringResult"), p0, p1, p2); - - /// - /// '{1}' must not be null for {0} if '{2}' is '{3}'. - /// - internal static string InputTagHelper_ValueRequired - { - get => GetString("InputTagHelper_ValueRequired"); - } - - /// - /// '{1}' must not be null for {0} if '{2}' is '{3}'. - /// - internal static string FormatInputTagHelper_ValueRequired(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("InputTagHelper_ValueRequired"), p0, p1, p2, p3); - - /// - /// The {2} was unable to provide metadata about '{1}' expression value '{3}' for {0}. - /// - internal static string TagHelpers_NoProvidedMetadata - { - get => GetString("TagHelpers_NoProvidedMetadata"); - } - - /// - /// The {2} was unable to provide metadata about '{1}' expression value '{3}' for {0}. - /// - internal static string FormatTagHelpers_NoProvidedMetadata(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_NoProvidedMetadata"), p0, p1, p2, p3); - - /// - /// The value of argument '{0}' ({1}) is invalid for Enum type '{2}'. - /// - internal static string InvalidEnumArgument - { - get => GetString("InvalidEnumArgument"); - } - - /// - /// The value of argument '{0}' ({1}) is invalid for Enum type '{2}'. - /// - internal static string FormatInvalidEnumArgument(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidEnumArgument"), p0, p1, p2); - - /// - /// The attribute '{0}' does not exist in the {1}. - /// - internal static string TagHelperOutput_AttributeDoesNotExist - { - get => GetString("TagHelperOutput_AttributeDoesNotExist"); - } - - /// - /// The attribute '{0}' does not exist in the {1}. - /// - internal static string FormatTagHelperOutput_AttributeDoesNotExist(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperOutput_AttributeDoesNotExist"), p0, p1); - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string PropertyOfTypeCannotBeNull - { - get => GetString("PropertyOfTypeCannotBeNull"); - } - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); - - /// - /// Cannot override the '{0}' attribute for <{1}>. <{1}> elements with a specified '{0}' must not have attributes starting with '{2}' or an '{3}', '{4}', '{5}', '{6}', '{7}', '{8}' or '{9}' attribute. - /// - internal static string FormActionTagHelper_CannotOverrideFormAction - { - get => GetString("FormActionTagHelper_CannotOverrideFormAction"); - } - - /// - /// Cannot override the '{0}' attribute for <{1}>. <{1}> elements with a specified '{0}' must not have attributes starting with '{2}' or an '{3}', '{4}', '{5}', '{6}', '{7}', '{8}' or '{9}' attribute. - /// - internal static string FormatFormActionTagHelper_CannotOverrideFormAction(object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7, object p8, object p9) - => string.Format(CultureInfo.CurrentCulture, GetString("FormActionTagHelper_CannotOverrideFormAction"), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); - - /// - /// Value cannot contain HTML space characters. - /// - internal static string ArgumentCannotContainHtmlSpace - { - get => GetString("ArgumentCannotContainHtmlSpace"); - } - - /// - /// Value cannot contain HTML space characters. - /// - internal static string FormatArgumentCannotContainHtmlSpace() - => GetString("ArgumentCannotContainHtmlSpace"); - - /// - /// The partial view '{0}' was not found. The following locations were searched:{1} - /// - internal static string ViewEngine_PartialViewNotFound - { - get => GetString("ViewEngine_PartialViewNotFound"); - } - - /// - /// The partial view '{0}' was not found. The following locations were searched:{1} - /// - internal static string FormatViewEngine_PartialViewNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewEngine_PartialViewNotFound"), p0, p1); - - /// - /// Cannot use '{0}' with both '{1}' and '{2}' attributes. - /// - internal static string PartialTagHelper_InvalidModelAttributes - { - get => GetString("PartialTagHelper_InvalidModelAttributes"); - } - - /// - /// Cannot use '{0}' with both '{1}' and '{2}' attributes. - /// - internal static string FormatPartialTagHelper_InvalidModelAttributes(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("PartialTagHelper_InvalidModelAttributes"), p0, p1, p2); - - /// - /// The fallback partial view '{0}' was not found. The following locations were searched:{1} - /// - internal static string ViewEngine_FallbackViewNotFound - { - get => GetString("ViewEngine_FallbackViewNotFound"); - } - - /// - /// The fallback partial view '{0}' was not found. The following locations were searched:{1} - /// - internal static string FormatViewEngine_FallbackViewNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewEngine_FallbackViewNotFound"), p0, p1); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.Testing/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.Testing/src/Properties/Resources.Designer.cs deleted file mode 100644 index e5c4f62c9b..0000000000 --- a/src/Mvc/Mvc.Testing/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.Testing -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.Testing.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The provided Type '{0}' does not belong to an assembly with an entry point. A common cause for this error is providing a Type from a class library. - /// - internal static string InvalidAssemblyEntryPoint - { - get => GetString("InvalidAssemblyEntryPoint"); - } - - /// - /// The provided Type '{0}' does not belong to an assembly with an entry point. A common cause for this error is providing a Type from a class library. - /// - internal static string FormatInvalidAssemblyEntryPoint(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("InvalidAssemblyEntryPoint"), p0); - - /// - /// No method 'public static {0} CreateHostBuilder(string[] args)' or 'public static {1} CreateWebHostBuilder(string[] args)' found on '{2}'. Alternatively, {3} can be extended and '{4}' or '{5}' can be overridden to provide your own instance. - /// - internal static string MissingBuilderMethod - { - get => GetString("MissingBuilderMethod"); - } - - /// - /// No method 'public static {0} CreateHostBuilder(string[] args)' or 'public static {1} CreateWebHostBuilder(string[] args)' found on '{2}'. Alternatively, {3} can be extended and '{4}' or '{5}' can be overridden to provide your own instance. - /// - internal static string FormatMissingBuilderMethod(object p0, object p1, object p2, object p3, object p4, object p5) - => string.Format(CultureInfo.CurrentCulture, GetString("MissingBuilderMethod"), p0, p1, p2, p3, p4, p5); - - /// - /// Can't find'{0}'. This file is required for functional tests to run properly. There should be a copy of the file on your source project bin folder. If that is not the case, make sure that the property PreserveCompilationContext is set to true on your project file. E.g '<PreserveCompilationContext>true</PreserveCompilationContext>'. For functional tests to work they need to either run from the build output folder or the {1} file from your application's output directory must be copied to the folder where the tests are running on. A common cause for this error is having shadow copying enabled when the tests run. - /// - internal static string MissingDepsFile - { - get => GetString("MissingDepsFile"); - } - - /// - /// Can't find'{0}'. This file is required for functional tests to run properly. There should be a copy of the file on your source project bin folder. If that is not the case, make sure that the property PreserveCompilationContext is set to true on your project file. E.g '<PreserveCompilationContext>true</PreserveCompilationContext>'. For functional tests to work they need to either run from the build output folder or the {1} file from your application's output directory must be copied to the folder where the tests are running on. A common cause for this error is having shadow copying enabled when the tests run. - /// - internal static string FormatMissingDepsFile(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("MissingDepsFile"), p0, p1); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.ViewFeatures/src/Properties/Resources.Designer.cs b/src/Mvc/Mvc.ViewFeatures/src/Properties/Resources.Designer.cs deleted file mode 100644 index 0de43a7bd8..0000000000 --- a/src/Mvc/Mvc.ViewFeatures/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,856 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.ViewFeatures -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.ViewFeatures.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The view component name '{0}' matched multiple types:{1}{2} - /// - internal static string ViewComponent_AmbiguousTypeMatch - { - get => GetString("ViewComponent_AmbiguousTypeMatch"); - } - - /// - /// The view component name '{0}' matched multiple types:{1}{2} - /// - internal static string FormatViewComponent_AmbiguousTypeMatch(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_AmbiguousTypeMatch"), p0, p1, p2); - - /// - /// Method '{0}' of view component '{1}' should be declared to return {2}<T>. - /// - internal static string ViewComponent_AsyncMethod_ShouldReturnTask - { - get => GetString("ViewComponent_AsyncMethod_ShouldReturnTask"); - } - - /// - /// Method '{0}' of view component '{1}' should be declared to return {2}<T>. - /// - internal static string FormatViewComponent_AsyncMethod_ShouldReturnTask(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_AsyncMethod_ShouldReturnTask"), p0, p1, p2); - - /// - /// A view component must return a non-null value. - /// - internal static string ViewComponent_MustReturnValue - { - get => GetString("ViewComponent_MustReturnValue"); - } - - /// - /// A view component must return a non-null value. - /// - internal static string FormatViewComponent_MustReturnValue() - => GetString("ViewComponent_MustReturnValue"); - - /// - /// Method '{0}' of view component '{1}' should be declared to return a value. - /// - internal static string ViewComponent_SyncMethod_ShouldReturnValue - { - get => GetString("ViewComponent_SyncMethod_ShouldReturnValue"); - } - - /// - /// Method '{0}' of view component '{1}' should be declared to return a value. - /// - internal static string FormatViewComponent_SyncMethod_ShouldReturnValue(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_SyncMethod_ShouldReturnValue"), p0, p1); - - /// - /// A view component named '{0}' could not be found. A view component must be a public non-abstract class, not contain any generic parameters, and either be decorated with '{1}' or have a class name ending with the '{2}' suffix. A view component must not be decorated with '{3}'. - /// - internal static string ViewComponent_CannotFindComponent - { - get => GetString("ViewComponent_CannotFindComponent"); - } - - /// - /// A view component named '{0}' could not be found. A view component must be a public non-abstract class, not contain any generic parameters, and either be decorated with '{1}' or have a class name ending with the '{2}' suffix. A view component must not be decorated with '{3}'. - /// - internal static string FormatViewComponent_CannotFindComponent(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_CannotFindComponent"), p0, p1, p2, p3); - - /// - /// An invoker could not be created for the view component '{0}'. - /// - internal static string ViewComponent_IViewComponentFactory_ReturnedNull - { - get => GetString("ViewComponent_IViewComponentFactory_ReturnedNull"); - } - - /// - /// An invoker could not be created for the view component '{0}'. - /// - internal static string FormatViewComponent_IViewComponentFactory_ReturnedNull(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_IViewComponentFactory_ReturnedNull"), p0); - - /// - /// Could not find an '{0}' or '{1}' method for the view component '{2}'. - /// - internal static string ViewComponent_CannotFindMethod - { - get => GetString("ViewComponent_CannotFindMethod"); - } - - /// - /// Could not find an '{0}' or '{1}' method for the view component '{2}'. - /// - internal static string FormatViewComponent_CannotFindMethod(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_CannotFindMethod"), p0, p1, p2); - - /// - /// View components only support returning {0}, {1} or {2}. - /// - internal static string ViewComponent_InvalidReturnValue - { - get => GetString("ViewComponent_InvalidReturnValue"); - } - - /// - /// View components only support returning {0}, {1} or {2}. - /// - internal static string FormatViewComponent_InvalidReturnValue(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_InvalidReturnValue"), p0, p1, p2); - - /// - /// Value cannot be null or empty. - /// - internal static string ArgumentCannotBeNullOrEmpty - { - get => GetString("ArgumentCannotBeNullOrEmpty"); - } - - /// - /// Value cannot be null or empty. - /// - internal static string FormatArgumentCannotBeNullOrEmpty() - => GetString("ArgumentCannotBeNullOrEmpty"); - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string PropertyOfTypeCannotBeNull - { - get => GetString("PropertyOfTypeCannotBeNull"); - } - - /// - /// The '{0}' property of '{1}' must not be null. - /// - internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); - - /// - /// The '{0}' method of type '{1}' cannot return a null value. - /// - internal static string TypeMethodMustReturnNotNullValue - { - get => GetString("TypeMethodMustReturnNotNullValue"); - } - - /// - /// The '{0}' method of type '{1}' cannot return a null value. - /// - internal static string FormatTypeMethodMustReturnNotNullValue(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TypeMethodMustReturnNotNullValue"), p0, p1); - - /// - /// Property '{0}' is of type '{1}', but this method requires a value of type '{2}'. - /// - internal static string ArgumentPropertyUnexpectedType - { - get => GetString("ArgumentPropertyUnexpectedType"); - } - - /// - /// Property '{0}' is of type '{1}', but this method requires a value of type '{2}'. - /// - internal static string FormatArgumentPropertyUnexpectedType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ArgumentPropertyUnexpectedType"), p0, p1, p2); - - /// - /// The partial view '{0}' was not found or no view engine supports the searched locations. The following locations were searched:{1} - /// - internal static string Common_PartialViewNotFound - { - get => GetString("Common_PartialViewNotFound"); - } - - /// - /// The partial view '{0}' was not found or no view engine supports the searched locations. The following locations were searched:{1} - /// - internal static string FormatCommon_PartialViewNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Common_PartialViewNotFound"), p0, p1); - - /// - /// False - /// - internal static string Common_TriState_False - { - get => GetString("Common_TriState_False"); - } - - /// - /// False - /// - internal static string FormatCommon_TriState_False() - => GetString("Common_TriState_False"); - - /// - /// Not Set - /// - internal static string Common_TriState_NotSet - { - get => GetString("Common_TriState_NotSet"); - } - - /// - /// Not Set - /// - internal static string FormatCommon_TriState_NotSet() - => GetString("Common_TriState_NotSet"); - - /// - /// True - /// - internal static string Common_TriState_True - { - get => GetString("Common_TriState_True"); - } - - /// - /// True - /// - internal static string FormatCommon_TriState_True() - => GetString("Common_TriState_True"); - - /// - /// ViewData value must not be null. - /// - internal static string DynamicViewData_ViewDataNull - { - get => GetString("DynamicViewData_ViewDataNull"); - } - - /// - /// ViewData value must not be null. - /// - internal static string FormatDynamicViewData_ViewDataNull() - => GetString("DynamicViewData_ViewDataNull"); - - /// - /// The expression compiler was unable to evaluate the indexer expression '{0}' because it references the model parameter '{1}' which is unavailable. - /// - internal static string ExpressionHelper_InvalidIndexerExpression - { - get => GetString("ExpressionHelper_InvalidIndexerExpression"); - } - - /// - /// The expression compiler was unable to evaluate the indexer expression '{0}' because it references the model parameter '{1}' which is unavailable. - /// - internal static string FormatExpressionHelper_InvalidIndexerExpression(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ExpressionHelper_InvalidIndexerExpression"), p0, p1); - - /// - /// The IModelMetadataProvider was unable to provide metadata for expression '{0}'. - /// - internal static string HtmlHelper_NullModelMetadata - { - get => GetString("HtmlHelper_NullModelMetadata"); - } - - /// - /// The IModelMetadataProvider was unable to provide metadata for expression '{0}'. - /// - internal static string FormatHtmlHelper_NullModelMetadata(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("HtmlHelper_NullModelMetadata"), p0); - - /// - /// Must call 'Contextualize' method before using this HtmlHelper instance. - /// - internal static string HtmlHelper_NotContextualized - { - get => GetString("HtmlHelper_NotContextualized"); - } - - /// - /// Must call 'Contextualize' method before using this HtmlHelper instance. - /// - internal static string FormatHtmlHelper_NotContextualized() - => GetString("HtmlHelper_NotContextualized"); - - /// - /// There is no ViewData item of type '{0}' that has the key '{1}'. - /// - internal static string HtmlHelper_MissingSelectData - { - get => GetString("HtmlHelper_MissingSelectData"); - } - - /// - /// There is no ViewData item of type '{0}' that has the key '{1}'. - /// - internal static string FormatHtmlHelper_MissingSelectData(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("HtmlHelper_MissingSelectData"), p0, p1); - - /// - /// The parameter '{0}' must evaluate to an IEnumerable when multiple selection is allowed. - /// - internal static string HtmlHelper_SelectExpressionNotEnumerable - { - get => GetString("HtmlHelper_SelectExpressionNotEnumerable"); - } - - /// - /// The parameter '{0}' must evaluate to an IEnumerable when multiple selection is allowed. - /// - internal static string FormatHtmlHelper_SelectExpressionNotEnumerable(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("HtmlHelper_SelectExpressionNotEnumerable"), p0); - - /// - /// The type '{0}' is not supported. Type must be an {1} that does not have an associated {2}. - /// - internal static string HtmlHelper_TypeNotSupported_ForGetEnumSelectList - { - get => GetString("HtmlHelper_TypeNotSupported_ForGetEnumSelectList"); - } - - /// - /// The type '{0}' is not supported. Type must be an {1} that does not have an associated {2}. - /// - internal static string FormatHtmlHelper_TypeNotSupported_ForGetEnumSelectList(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("HtmlHelper_TypeNotSupported_ForGetEnumSelectList"), p0, p1, p2); - - /// - /// The ViewData item that has the key '{0}' is of type '{1}' but must be of type '{2}'. - /// - internal static string HtmlHelper_WrongSelectDataType - { - get => GetString("HtmlHelper_WrongSelectDataType"); - } - - /// - /// The ViewData item that has the key '{0}' is of type '{1}' but must be of type '{2}'. - /// - internal static string FormatHtmlHelper_WrongSelectDataType(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("HtmlHelper_WrongSelectDataType"), p0, p1, p2); - - /// - /// The '{0}' template was used with an object of type '{1}', which does not implement '{2}'. - /// - internal static string Templates_TypeMustImplementIEnumerable - { - get => GetString("Templates_TypeMustImplementIEnumerable"); - } - - /// - /// The '{0}' template was used with an object of type '{1}', which does not implement '{2}'. - /// - internal static string FormatTemplates_TypeMustImplementIEnumerable(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("Templates_TypeMustImplementIEnumerable"), p0, p1, p2); - - /// - /// Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions. - /// - internal static string TemplateHelpers_TemplateLimitations - { - get => GetString("TemplateHelpers_TemplateLimitations"); - } - - /// - /// Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions. - /// - internal static string FormatTemplateHelpers_TemplateLimitations() - => GetString("TemplateHelpers_TemplateLimitations"); - - /// - /// Unable to locate an appropriate template for type {0}. - /// - internal static string TemplateHelpers_NoTemplate - { - get => GetString("TemplateHelpers_NoTemplate"); - } - - /// - /// Unable to locate an appropriate template for type {0}. - /// - internal static string FormatTemplateHelpers_NoTemplate(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplateHelpers_NoTemplate"), p0); - - /// - /// The model item passed is null, but this ViewDataDictionary instance requires a non-null model item of type '{0}'. - /// - internal static string ViewData_ModelCannotBeNull - { - get => GetString("ViewData_ModelCannotBeNull"); - } - - /// - /// The model item passed is null, but this ViewDataDictionary instance requires a non-null model item of type '{0}'. - /// - internal static string FormatViewData_ModelCannotBeNull(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewData_ModelCannotBeNull"), p0); - - /// - /// The model item passed into the ViewDataDictionary is of type '{0}', but this ViewDataDictionary instance requires a model item of type '{1}'. - /// - internal static string ViewData_WrongTModelType - { - get => GetString("ViewData_WrongTModelType"); - } - - /// - /// The model item passed into the ViewDataDictionary is of type '{0}', but this ViewDataDictionary instance requires a model item of type '{1}'. - /// - internal static string FormatViewData_WrongTModelType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewData_WrongTModelType"), p0, p1); - - /// - /// The partial view '{0}' was not found. The following locations were searched:{1} - /// - internal static string ViewEngine_PartialViewNotFound - { - get => GetString("ViewEngine_PartialViewNotFound"); - } - - /// - /// The partial view '{0}' was not found. The following locations were searched:{1} - /// - internal static string FormatViewEngine_PartialViewNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewEngine_PartialViewNotFound"), p0, p1); - - /// - /// The view '{0}' was not found. The following locations were searched:{1} - /// - internal static string ViewEngine_ViewNotFound - { - get => GetString("ViewEngine_ViewNotFound"); - } - - /// - /// The view '{0}' was not found. The following locations were searched:{1} - /// - internal static string FormatViewEngine_ViewNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewEngine_ViewNotFound"), p0, p1); - - /// - /// The value must be greater than or equal to zero. - /// - internal static string HtmlHelper_TextAreaParameterOutOfRange - { - get => GetString("HtmlHelper_TextAreaParameterOutOfRange"); - } - - /// - /// The value must be greater than or equal to zero. - /// - internal static string FormatHtmlHelper_TextAreaParameterOutOfRange() - => GetString("HtmlHelper_TextAreaParameterOutOfRange"); - - /// - /// Validation parameter names in unobtrusive client validation rules cannot be empty. Client rule type: {0} - /// - internal static string UnobtrusiveJavascript_ValidationParameterCannotBeEmpty - { - get => GetString("UnobtrusiveJavascript_ValidationParameterCannotBeEmpty"); - } - - /// - /// Validation parameter names in unobtrusive client validation rules cannot be empty. Client rule type: {0} - /// - internal static string FormatUnobtrusiveJavascript_ValidationParameterCannotBeEmpty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnobtrusiveJavascript_ValidationParameterCannotBeEmpty"), p0); - - /// - /// Validation parameter names in unobtrusive client validation rules must start with a lowercase letter and consist of only lowercase letters or digits. Validation parameter name: {0}, client rule type: {1} - /// - internal static string UnobtrusiveJavascript_ValidationParameterMustBeLegal - { - get => GetString("UnobtrusiveJavascript_ValidationParameterMustBeLegal"); - } - - /// - /// Validation parameter names in unobtrusive client validation rules must start with a lowercase letter and consist of only lowercase letters or digits. Validation parameter name: {0}, client rule type: {1} - /// - internal static string FormatUnobtrusiveJavascript_ValidationParameterMustBeLegal(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("UnobtrusiveJavascript_ValidationParameterMustBeLegal"), p0, p1); - - /// - /// Validation type names in unobtrusive client validation rules cannot be empty. Client rule type: {0} - /// - internal static string UnobtrusiveJavascript_ValidationTypeCannotBeEmpty - { - get => GetString("UnobtrusiveJavascript_ValidationTypeCannotBeEmpty"); - } - - /// - /// Validation type names in unobtrusive client validation rules cannot be empty. Client rule type: {0} - /// - internal static string FormatUnobtrusiveJavascript_ValidationTypeCannotBeEmpty(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnobtrusiveJavascript_ValidationTypeCannotBeEmpty"), p0); - - /// - /// Validation type names in unobtrusive client validation rules must consist of only lowercase letters. Invalid name: "{0}", client rule type: {1} - /// - internal static string UnobtrusiveJavascript_ValidationTypeMustBeLegal - { - get => GetString("UnobtrusiveJavascript_ValidationTypeMustBeLegal"); - } - - /// - /// Validation type names in unobtrusive client validation rules must consist of only lowercase letters. Invalid name: "{0}", client rule type: {1} - /// - internal static string FormatUnobtrusiveJavascript_ValidationTypeMustBeLegal(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("UnobtrusiveJavascript_ValidationTypeMustBeLegal"), p0, p1); - - /// - /// Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: {0} - /// - internal static string UnobtrusiveJavascript_ValidationTypeMustBeUnique - { - get => GetString("UnobtrusiveJavascript_ValidationTypeMustBeUnique"); - } - - /// - /// Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: {0} - /// - internal static string FormatUnobtrusiveJavascript_ValidationTypeMustBeUnique(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnobtrusiveJavascript_ValidationTypeMustBeUnique"), p0); - - /// - /// The type '{0}' must derive from '{1}'. - /// - internal static string TypeMustDeriveFromType - { - get => GetString("TypeMustDeriveFromType"); - } - - /// - /// The type '{0}' must derive from '{1}'. - /// - internal static string FormatTypeMustDeriveFromType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TypeMustDeriveFromType"), p0, p1); - - /// - /// Could not find a replacement for view expansion token '{0}'. - /// - internal static string TemplatedViewLocationExpander_NoReplacementToken - { - get => GetString("TemplatedViewLocationExpander_NoReplacementToken"); - } - - /// - /// Could not find a replacement for view expansion token '{0}'. - /// - internal static string FormatTemplatedViewLocationExpander_NoReplacementToken(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplatedViewLocationExpander_NoReplacementToken"), p0); - - /// - /// {0} must be executed before {1} can be invoked. - /// - internal static string TemplatedExpander_PopulateValuesMustBeInvokedFirst - { - get => GetString("TemplatedExpander_PopulateValuesMustBeInvokedFirst"); - } - - /// - /// {0} must be executed before {1} can be invoked. - /// - internal static string FormatTemplatedExpander_PopulateValuesMustBeInvokedFirst(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TemplatedExpander_PopulateValuesMustBeInvokedFirst"), p0, p1); - - /// - /// The result of value factory cannot be null. - /// - internal static string TemplatedExpander_ValueFactoryCannotReturnNull - { - get => GetString("TemplatedExpander_ValueFactoryCannotReturnNull"); - } - - /// - /// The result of value factory cannot be null. - /// - internal static string FormatTemplatedExpander_ValueFactoryCannotReturnNull() - => GetString("TemplatedExpander_ValueFactoryCannotReturnNull"); - - /// - /// Type: '{0}' - Name: '{1}' - /// - internal static string ViewComponent_AmbiguousTypeMatch_Item - { - get => GetString("ViewComponent_AmbiguousTypeMatch_Item"); - } - - /// - /// Type: '{0}' - Name: '{1}' - /// - internal static string FormatViewComponent_AmbiguousTypeMatch_Item(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_AmbiguousTypeMatch_Item"), p0, p1); - - /// - /// The property {0}.{1} could not be found. - /// - internal static string Common_PropertyNotFound - { - get => GetString("Common_PropertyNotFound"); - } - - /// - /// The property {0}.{1} could not be found. - /// - internal static string FormatCommon_PropertyNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("Common_PropertyNotFound"), p0, p1); - - /// - /// No URL for remote validation could be found. - /// - internal static string RemoteAttribute_NoUrlFound - { - get => GetString("RemoteAttribute_NoUrlFound"); - } - - /// - /// No URL for remote validation could be found. - /// - internal static string FormatRemoteAttribute_NoUrlFound() - => GetString("RemoteAttribute_NoUrlFound"); - - /// - /// '{0}' is invalid. - /// - internal static string RemoteAttribute_RemoteValidationFailed - { - get => GetString("RemoteAttribute_RemoteValidationFailed"); - } - - /// - /// '{0}' is invalid. - /// - internal static string FormatRemoteAttribute_RemoteValidationFailed(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("RemoteAttribute_RemoteValidationFailed"), p0); - - /// - /// The name of an HTML field cannot be null or empty. Instead use methods {0}.{1} or {2}.{3} with a non-empty {4} argument value. - /// - internal static string HtmlGenerator_FieldNameCannotBeNullOrEmpty - { - get => GetString("HtmlGenerator_FieldNameCannotBeNullOrEmpty"); - } - - /// - /// The name of an HTML field cannot be null or empty. Instead use methods {0}.{1} or {2}.{3} with a non-empty {4} argument value. - /// - internal static string FormatHtmlGenerator_FieldNameCannotBeNullOrEmpty(object p0, object p1, object p2, object p3, object p4) - => string.Format(CultureInfo.CurrentCulture, GetString("HtmlGenerator_FieldNameCannotBeNullOrEmpty"), p0, p1, p2, p3, p4); - - /// - /// Either the '{0}' or '{1}' property must be set in order to invoke a view component. - /// - internal static string ViewComponentResult_NameOrTypeMustBeSet - { - get => GetString("ViewComponentResult_NameOrTypeMustBeSet"); - } - - /// - /// Either the '{0}' or '{1}' property must be set in order to invoke a view component. - /// - internal static string FormatViewComponentResult_NameOrTypeMustBeSet(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponentResult_NameOrTypeMustBeSet"), p0, p1); - - /// - /// The collection already contains an entry with key '{0}'. - /// - internal static string Dictionary_DuplicateKey - { - get => GetString("Dictionary_DuplicateKey"); - } - - /// - /// The collection already contains an entry with key '{0}'. - /// - internal static string FormatDictionary_DuplicateKey(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Dictionary_DuplicateKey"), p0); - - /// - /// Method '{0}' of view component '{1}' cannot return a {2}. - /// - internal static string ViewComponent_SyncMethod_CannotReturnTask - { - get => GetString("ViewComponent_SyncMethod_CannotReturnTask"); - } - - /// - /// Method '{0}' of view component '{1}' cannot return a {2}. - /// - internal static string FormatViewComponent_SyncMethod_CannotReturnTask(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_SyncMethod_CannotReturnTask"), p0, p1, p2); - - /// - /// View component '{0}' must have exactly one public method named '{1}' or '{2}'. - /// - internal static string ViewComponent_AmbiguousMethods - { - get => GetString("ViewComponent_AmbiguousMethods"); - } - - /// - /// View component '{0}' must have exactly one public method named '{1}' or '{2}'. - /// - internal static string FormatViewComponent_AmbiguousMethods(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewComponent_AmbiguousMethods"), p0, p1, p2); - - /// - /// The type '{0}' cannot be activated by '{1}' because it is either a value type, an interface, an abstract class or an open generic type. - /// - internal static string ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated - { - get => GetString("ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated"); - } - - /// - /// The type '{0}' cannot be activated by '{1}' because it is either a value type, an interface, an abstract class or an open generic type. - /// - internal static string FormatValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("ValueInterfaceAbstractOrOpenGenericTypesCannotBeActivated"), p0, p1); - - /// - /// The {0} was unable to provide metadata for expression '{1}'. - /// - internal static string CreateModelExpression_NullModelMetadata - { - get => GetString("CreateModelExpression_NullModelMetadata"); - } - - /// - /// The {0} was unable to provide metadata for expression '{1}'. - /// - internal static string FormatCreateModelExpression_NullModelMetadata(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("CreateModelExpression_NullModelMetadata"), p0, p1); - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. - /// - internal static string ViewEnginesAreRequired - { - get => GetString("ViewEnginesAreRequired"); - } - - /// - /// '{0}.{1}' must not be empty. At least one '{2}' is required to locate a view for rendering. - /// - internal static string FormatViewEnginesAreRequired(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ViewEnginesAreRequired"), p0, p1, p2); - - /// - /// The '{0}.{1}' property with {2} is invalid. A property using {2} must have a public getter and setter. - /// - internal static string TempDataProperties_PublicGetterSetter - { - get => GetString("TempDataProperties_PublicGetterSetter"); - } - - /// - /// The '{0}.{1}' property with {2} is invalid. A property using {2} must have a public getter and setter. - /// - internal static string FormatTempDataProperties_PublicGetterSetter(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("TempDataProperties_PublicGetterSetter"), p0, p1, p2); - - /// - /// TempData serializer '{0}' cannot serialize property '{1}.{2}' of type '{3}'. - /// - internal static string TempDataProperties_InvalidType - { - get => GetString("TempDataProperties_InvalidType"); - } - - /// - /// TempData serializer '{0}' cannot serialize property '{1}.{2}' of type '{3}'. - /// - internal static string FormatTempDataProperties_InvalidType(object p0, object p1, object p2, object p3) - => string.Format(CultureInfo.CurrentCulture, GetString("TempDataProperties_InvalidType"), p0, p1, p2, p3); - - /// - /// Deserializing TempDataDictionary - /// - internal static string DeserializingTempData - { - get => GetString("DeserializingTempData"); - } - - /// - /// Deserializing TempDataDictionary - /// - internal static string FormatDeserializingTempData() - => GetString("DeserializingTempData"); - - /// - /// Serializing TempDataDictionary - /// - internal static string SerializingTempData - { - get => GetString("SerializingTempData"); - } - - /// - /// Serializing TempDataDictionary - /// - internal static string FormatSerializingTempData() - => GetString("SerializingTempData"); - - /// - /// The '{0}' cannot serialize an object of type '{1}'. - /// - internal static string TempData_CannotSerializeType - { - get => GetString("TempData_CannotSerializeType"); - } - - /// - /// The '{0}' cannot serialize an object of type '{1}'. - /// - internal static string FormatTempData_CannotSerializeType(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("TempData_CannotSerializeType"), p0, p1); - - /// - /// Unsupported data type '{0}'. - /// - internal static string TempData_CannotDeserializeType - { - get => GetString("TempData_CannotDeserializeType"); - } - - /// - /// Unsupported data type '{0}'. - /// - internal static string FormatTempData_CannotDeserializeType(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("TempData_CannotDeserializeType"), p0); - - 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; - } - } -} diff --git a/src/Mvc/Mvc.ViewFeatures/test/Properties/Resources.Designer.cs b/src/Mvc/Mvc.ViewFeatures/test/Properties/Resources.Designer.cs deleted file mode 100644 index 3f23183787..0000000000 --- a/src/Mvc/Mvc.ViewFeatures/test/Properties/Resources.Designer.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Test -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Mvc.ViewFeatures.Test.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Comparing {0} to {1}. - /// - internal static string CompareAttributeTestResource - { - get => GetString("CompareAttributeTestResource"); - } - - /// - /// Comparing {0} to {1}. - /// - internal static string FormatCompareAttributeTestResource(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("CompareAttributeTestResource"), p0, p1); - - /// - /// description from resources - /// - internal static string DisplayAttribute_Description - { - get => GetString("DisplayAttribute_Description"); - } - - /// - /// description from resources - /// - internal static string FormatDisplayAttribute_Description() - => GetString("DisplayAttribute_Description"); - - /// - /// name from resources - /// - internal static string DisplayAttribute_Name - { - get => GetString("DisplayAttribute_Name"); - } - - /// - /// name from resources - /// - internal static string FormatDisplayAttribute_Name() - => GetString("DisplayAttribute_Name"); - - /// - /// Error about '{0}' from resources. - /// - internal static string RemoteAttribute_Error - { - get => GetString("RemoteAttribute_Error"); - } - - /// - /// Error about '{0}' from resources. - /// - internal static string FormatRemoteAttribute_Error(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("RemoteAttribute_Error"), p0); - - 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; - } - } -} diff --git a/src/Mvc/dotnet-getdocument/src/Properties/Resources.Designer.cs b/src/Mvc/dotnet-getdocument/src/Properties/Resources.Designer.cs deleted file mode 100644 index 49baad030b..0000000000 --- a/src/Mvc/dotnet-getdocument/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,226 +0,0 @@ -// -namespace Microsoft.Extensions.ApiDescription.Tool -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.Extensions.ApiDescription.Tool.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// dotnet-getdocument - /// - internal static string CommandFullName - { - get => GetString("CommandFullName"); - } - - /// - /// dotnet-getdocument - /// - internal static string FormatCommandFullName() - => GetString("CommandFullName"); - - /// - /// The target framework to use. Required. - /// - internal static string TargetFrameworkDescription - { - get => GetString("TargetFrameworkDescription"); - } - - /// - /// The target framework to use. Required. - /// - internal static string FormatTargetFrameworkDescription() - => GetString("TargetFrameworkDescription"); - - /// - /// Project '{0}' targets framework '.NETCoreApp' version '{1}'. This version of the dotnet-getdocument tool only supports version 2.1 or higher. - /// - internal static string OldNETCoreAppProject - { - get => GetString("OldNETCoreAppProject"); - } - - /// - /// Project '{0}' targets framework '.NETCoreApp' version '{1}'. This version of the dotnet-getdocument tool only supports version 2.1 or higher. - /// - internal static string FormatOldNETCoreAppProject(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("OldNETCoreAppProject"), p0, p1); - - /// - /// Project '{0}' targets framework '.NETStandard'. There is no runtime associated with this framework and projects targeting it cannot be executed directly. To use the dotnet-getdocument tool with this project, update this project to target .NET Core and / or .NET Framework. - /// - internal static string NETStandardProject - { - get => GetString("NETStandardProject"); - } - - /// - /// Project '{0}' targets framework '.NETStandard'. There is no runtime associated with this framework and projects targeting it cannot be executed directly. To use the dotnet-getdocument tool with this project, update this project to target .NET Core and / or .NET Framework. - /// - internal static string FormatNETStandardProject(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("NETStandardProject"), p0); - - /// - /// Do not colorize console output. - /// - internal static string NoColorDescription - { - get => GetString("NoColorDescription"); - } - - /// - /// Do not colorize console output. - /// - internal static string FormatNoColorDescription() - => GetString("NoColorDescription"); - - /// - /// Prefix console output with logging level. - /// - internal static string PrefixDescription - { - get => GetString("PrefixDescription"); - } - - /// - /// Prefix console output with logging level. - /// - internal static string FormatPrefixDescription() - => GetString("PrefixDescription"); - - /// - /// The project name. Required. - /// - internal static string ProjectDescription - { - get => GetString("ProjectDescription"); - } - - /// - /// The project name. Required. - /// - internal static string FormatProjectDescription() - => GetString("ProjectDescription"); - - /// - /// The runtime identifier to use. - /// - internal static string RuntimeDescription - { - get => GetString("RuntimeDescription"); - } - - /// - /// The runtime identifier to use. - /// - internal static string FormatRuntimeDescription() - => GetString("RuntimeDescription"); - - /// - /// Project '{0}' targets framework '{1}'. The dotnet-getdocument tool does not support this framework. - /// - internal static string UnsupportedFramework - { - get => GetString("UnsupportedFramework"); - } - - /// - /// Project '{0}' targets framework '{1}'. The dotnet-getdocument tool does not support this framework. - /// - internal static string FormatUnsupportedFramework(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("UnsupportedFramework"), p0, p1); - - /// - /// Show verbose output. - /// - internal static string VerboseDescription - { - get => GetString("VerboseDescription"); - } - - /// - /// Show verbose output. - /// - internal static string FormatVerboseDescription() - => GetString("VerboseDescription"); - - /// - /// The project assets file to use. - /// - internal static string AssetsFileDescription - { - get => GetString("AssetsFileDescription"); - } - - /// - /// The project assets file to use. - /// - internal static string FormatAssetsFileDescription() - => GetString("AssetsFileDescription"); - - /// - /// Missing required option '--{0}'. - /// - internal static string MissingOption - { - get => GetString("MissingOption"); - } - - /// - /// Missing required option '--{0}'. - /// - internal static string FormatMissingOption(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("MissingOption"), p0); - - /// - /// The platform to use. - /// - internal static string PlatformDescription - { - get => GetString("PlatformDescription"); - } - - /// - /// The platform to use. - /// - internal static string FormatPlatformDescription() - => GetString("PlatformDescription"); - - /// - /// The assembly path to use. Required. - /// - internal static string AssemblyDescription - { - get => GetString("AssemblyDescription"); - } - - /// - /// The assembly path to use. Required. - /// - internal static string FormatAssemblyDescription() - => GetString("AssemblyDescription"); - - 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; - } - } -} diff --git a/src/Mvc/test/WebSites/RazorPagesWebSite/RazorPagesWebSite.csproj b/src/Mvc/test/WebSites/RazorPagesWebSite/RazorPagesWebSite.csproj index 70dfc9e4c9..09754c80c3 100644 --- a/src/Mvc/test/WebSites/RazorPagesWebSite/RazorPagesWebSite.csproj +++ b/src/Mvc/test/WebSites/RazorPagesWebSite/RazorPagesWebSite.csproj @@ -3,6 +3,9 @@ netcoreapp3.0 true + + + false diff --git a/src/Razor/Razor.Runtime/src/Properties/Resources.Designer.cs b/src/Razor/Razor.Runtime/src/Properties/Resources.Designer.cs deleted file mode 100644 index 15dc773c6a..0000000000 --- a/src/Razor/Razor.Runtime/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -namespace Microsoft.AspNetCore.Razor.Runtime -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Razor.Runtime.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Must call '{2}.{1}' before calling '{2}.{0}'. - /// - internal static string ScopeManager_EndCannotBeCalledWithoutACallToBegin - { - get => GetString("ScopeManager_EndCannotBeCalledWithoutACallToBegin"); - } - - /// - /// Must call '{2}.{1}' before calling '{2}.{0}'. - /// - internal static string FormatScopeManager_EndCannotBeCalledWithoutACallToBegin(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("ScopeManager_EndCannotBeCalledWithoutACallToBegin"), 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; - } - } -} diff --git a/src/Security/Authentication/Core/src/Properties/Resources.Designer.cs b/src/Security/Authentication/Core/src/Properties/Resources.Designer.cs deleted file mode 100644 index b1941a7dca..0000000000 --- a/src/Security/Authentication/Core/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,100 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The default data protection provider may only be used when the IApplicationBuilder.Properties contains an appropriate 'host.AppName' key. - /// - internal static string Exception_DefaultDpapiRequiresAppNameKey - { - get => GetString("Exception_DefaultDpapiRequiresAppNameKey"); - } - - /// - /// The default data protection provider may only be used when the IApplicationBuilder.Properties contains an appropriate 'host.AppName' key. - /// - internal static string FormatException_DefaultDpapiRequiresAppNameKey() - => GetString("Exception_DefaultDpapiRequiresAppNameKey"); - - /// - /// The state passed to UnhookAuthentication may only be the return value from HookAuthentication. - /// - internal static string Exception_UnhookAuthenticationStateType - { - get => GetString("Exception_UnhookAuthenticationStateType"); - } - - /// - /// The state passed to UnhookAuthentication may only be the return value from HookAuthentication. - /// - internal static string FormatException_UnhookAuthenticationStateType() - => GetString("Exception_UnhookAuthenticationStateType"); - - /// - /// The AuthenticationTokenProvider's required synchronous events have not been registered. - /// - internal static string Exception_AuthenticationTokenDoesNotProvideSyncMethods - { - get => GetString("Exception_AuthenticationTokenDoesNotProvideSyncMethods"); - } - - /// - /// The AuthenticationTokenProvider's required synchronous events have not been registered. - /// - internal static string FormatException_AuthenticationTokenDoesNotProvideSyncMethods() - => GetString("Exception_AuthenticationTokenDoesNotProvideSyncMethods"); - - /// - /// The '{0}' option must be provided. - /// - internal static string Exception_OptionMustBeProvided - { - get => GetString("Exception_OptionMustBeProvided"); - } - - /// - /// The '{0}' option must be provided. - /// - internal static string FormatException_OptionMustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); - - /// - /// The SignInScheme for a remote authentication handler cannot be set to itself. If it was not explicitly set, the AuthenticationOptions.DefaultSignInScheme or DefaultScheme is used. - /// - internal static string Exception_RemoteSignInSchemeCannotBeSelf - { - get => GetString("Exception_RemoteSignInSchemeCannotBeSelf"); - } - - /// - /// The SignInScheme for a remote authentication handler cannot be set to itself. If it was not explicitly set, the AuthenticationOptions.DefaultSignInScheme or DefaultScheme is used. - /// - internal static string FormatException_RemoteSignInSchemeCannotBeSelf() - => GetString("Exception_RemoteSignInSchemeCannotBeSelf"); - - 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; - } - } -} diff --git a/src/Security/Authentication/Facebook/src/Resources.Designer.cs b/src/Security/Authentication/Facebook/src/Resources.Designer.cs deleted file mode 100644 index 655da24a30..0000000000 --- a/src/Security/Authentication/Facebook/src/Resources.Designer.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication.Facebook -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.Facebook.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The '{0}' option must be provided. - /// - internal static string Exception_OptionMustBeProvided - { - get => GetString("Exception_OptionMustBeProvided"); - } - - /// - /// The '{0}' option must be provided. - /// - internal static string FormatException_OptionMustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); - - 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; - } - } -} diff --git a/src/Security/Authentication/Google/src/Resources.Designer.cs b/src/Security/Authentication/Google/src/Resources.Designer.cs deleted file mode 100644 index 03448b408c..0000000000 --- a/src/Security/Authentication/Google/src/Resources.Designer.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication.Google -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.Google.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The '{0}' option must be provided. - /// - internal static string Exception_OptionMustBeProvided - { - get => GetString("Exception_OptionMustBeProvided"); - } - - /// - /// The '{0}' option must be provided. - /// - internal static string FormatException_OptionMustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string Exception_ValidatorHandlerMismatch - { - get => GetString("Exception_ValidatorHandlerMismatch"); - } - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string FormatException_ValidatorHandlerMismatch() - => GetString("Exception_ValidatorHandlerMismatch"); - - 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; - } - } -} diff --git a/src/Security/Authentication/JwtBearer/src/Properties/Resources.Designer.cs b/src/Security/Authentication/JwtBearer/src/Properties/Resources.Designer.cs deleted file mode 100644 index e95b8e061b..0000000000 --- a/src/Security/Authentication/JwtBearer/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication.JwtBearer -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.JwtBearer.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The '{0}' option must be provided. - /// - internal static string Exception_OptionMustBeProvided - { - get => GetString("Exception_OptionMustBeProvided"); - } - - /// - /// The '{0}' option must be provided. - /// - internal static string FormatException_OptionMustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string Exception_ValidatorHandlerMismatch - { - get => GetString("Exception_ValidatorHandlerMismatch"); - } - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string FormatException_ValidatorHandlerMismatch() - => GetString("Exception_ValidatorHandlerMismatch"); - - 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; - } - } -} diff --git a/src/Security/Authentication/MicrosoftAccount/src/Resources.Designer.cs b/src/Security/Authentication/MicrosoftAccount/src/Resources.Designer.cs deleted file mode 100644 index 7ef5acecb2..0000000000 --- a/src/Security/Authentication/MicrosoftAccount/src/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication.MicrosoftAccount -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.MicrosoftAccount.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The user does not have an id. - /// - internal static string Exception_MissingId - { - get => GetString("Exception_MissingId"); - } - - /// - /// The user does not have an id. - /// - internal static string FormatException_MissingId() - => GetString("Exception_MissingId"); - - /// - /// The '{0}' option must be provided. - /// - internal static string Exception_OptionMustBeProvided - { - get => GetString("Exception_OptionMustBeProvided"); - } - - /// - /// The '{0}' option must be provided. - /// - internal static string FormatException_OptionMustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string Exception_ValidatorHandlerMismatch - { - get => GetString("Exception_ValidatorHandlerMismatch"); - } - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string FormatException_ValidatorHandlerMismatch() - => GetString("Exception_ValidatorHandlerMismatch"); - - 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; - } - } -} diff --git a/src/Security/Authentication/OAuth/src/Properties/Resources.Designer.cs b/src/Security/Authentication/OAuth/src/Properties/Resources.Designer.cs deleted file mode 100644 index 5a38ade0b9..0000000000 --- a/src/Security/Authentication/OAuth/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication.OAuth -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.OAuth.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The '{0}' option must be provided. - /// - internal static string Exception_OptionMustBeProvided - { - get => GetString("Exception_OptionMustBeProvided"); - } - - /// - /// The '{0}' option must be provided. - /// - internal static string FormatException_OptionMustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string Exception_ValidatorHandlerMismatch - { - get => GetString("Exception_ValidatorHandlerMismatch"); - } - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string FormatException_ValidatorHandlerMismatch() - => GetString("Exception_ValidatorHandlerMismatch"); - - 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; - } - } -} diff --git a/src/Security/Authentication/OpenIdConnect/src/Properties/Resources.Designer.cs b/src/Security/Authentication/OpenIdConnect/src/Properties/Resources.Designer.cs deleted file mode 100644 index 753373ece4..0000000000 --- a/src/Security/Authentication/OpenIdConnect/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication.OpenIdConnect -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.OpenIdConnect.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// OpenIdConnectAuthenticationHandler: message.State is null or empty. - /// - internal static string MessageStateIsNullOrEmpty - { - get => GetString("MessageStateIsNullOrEmpty"); - } - - /// - /// OpenIdConnectAuthenticationHandler: message.State is null or empty. - /// - internal static string FormatMessageStateIsNullOrEmpty() - => GetString("MessageStateIsNullOrEmpty"); - - /// - /// Unable to unprotect the message.State. - /// - internal static string MessageStateIsInvalid - { - get => GetString("MessageStateIsInvalid"); - } - - /// - /// Unable to unprotect the message.State. - /// - internal static string FormatMessageStateIsInvalid() - => GetString("MessageStateIsInvalid"); - - /// - /// Message contains error: '{0}', error_description: '{1}', error_uri: '{2}'. - /// - internal static string MessageContainsError - { - get => GetString("MessageContainsError"); - } - - /// - /// Message contains error: '{0}', error_description: '{1}', error_uri: '{2}'. - /// - internal static string FormatMessageContainsError(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("MessageContainsError"), p0, p1, p2); - - /// - /// The Validated Security Token must be of type JwtSecurityToken, but instead its type is: '{0}'. - /// - internal static string ValidatedSecurityTokenNotJwt - { - get => GetString("ValidatedSecurityTokenNotJwt"); - } - - /// - /// The Validated Security Token must be of type JwtSecurityToken, but instead its type is: '{0}'. - /// - internal static string FormatValidatedSecurityTokenNotJwt(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("ValidatedSecurityTokenNotJwt"), p0); - - /// - /// Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{0}'." - /// - internal static string UnableToValidateToken - { - get => GetString("UnableToValidateToken"); - } - - /// - /// Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{0}'." - /// - internal static string FormatUnableToValidateToken(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("UnableToValidateToken"), p0); - - /// - /// Cannot process the message. Both id_token and code are missing. - /// - internal static string IdTokenCodeMissing - { - get => GetString("IdTokenCodeMissing"); - } - - /// - /// Cannot process the message. Both id_token and code are missing. - /// - internal static string FormatIdTokenCodeMissing() - => GetString("IdTokenCodeMissing"); - - 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; - } - } -} diff --git a/src/Security/Authentication/Twitter/src/Properties/Resources.Designer.cs b/src/Security/Authentication/Twitter/src/Properties/Resources.Designer.cs deleted file mode 100644 index 2eabfff298..0000000000 --- a/src/Security/Authentication/Twitter/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication.Twitter -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.Twitter.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The '{0}' option must be provided. - /// - internal static string Exception_OptionMustBeProvided - { - get => GetString("Exception_OptionMustBeProvided"); - } - - /// - /// The '{0}' option must be provided. - /// - internal static string FormatException_OptionMustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string Exception_ValidatorHandlerMismatch - { - get => GetString("Exception_ValidatorHandlerMismatch"); - } - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string FormatException_ValidatorHandlerMismatch() - => GetString("Exception_ValidatorHandlerMismatch"); - - 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; - } - } -} diff --git a/src/Security/Authentication/WsFederation/src/Properties/Resources.Designer.cs b/src/Security/Authentication/WsFederation/src/Properties/Resources.Designer.cs deleted file mode 100644 index 564e826a78..0000000000 --- a/src/Security/Authentication/WsFederation/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authentication.WsFederation -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authentication.WsFederation.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The service descriptor is missing. - /// - internal static string Exception_MissingDescriptor - { - get => GetString("Exception_MissingDescriptor"); - } - - /// - /// The service descriptor is missing. - /// - internal static string FormatException_MissingDescriptor() - => GetString("Exception_MissingDescriptor"); - - /// - /// No token validator was found for the given token. - /// - internal static string Exception_NoTokenValidatorFound - { - get => GetString("Exception_NoTokenValidatorFound"); - } - - /// - /// No token validator was found for the given token. - /// - internal static string FormatException_NoTokenValidatorFound() - => GetString("Exception_NoTokenValidatorFound"); - - /// - /// The '{0}' option must be provided. - /// - internal static string Exception_OptionMustBeProvided - { - get => GetString("Exception_OptionMustBeProvided"); - } - - /// - /// The '{0}' option must be provided. - /// - internal static string FormatException_OptionMustBeProvided(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_OptionMustBeProvided"), p0); - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string Exception_ValidatorHandlerMismatch - { - get => GetString("Exception_ValidatorHandlerMismatch"); - } - - /// - /// An ICertificateValidator cannot be specified at the same time as an HttpMessageHandler unless it is a WebRequestHandler. - /// - internal static string FormatException_ValidatorHandlerMismatch() - => GetString("Exception_ValidatorHandlerMismatch"); - - /// - /// The sign in message does not contain a required token. - /// - internal static string SignInMessageTokenIsMissing - { - get => GetString("SignInMessageTokenIsMissing"); - } - - /// - /// The sign in message does not contain a required token. - /// - internal static string FormatSignInMessageTokenIsMissing() - => GetString("SignInMessageTokenIsMissing"); - - /// - /// The sign in message does not contain a required wresult. - /// - internal static string SignInMessageWresultIsMissing - { - get => GetString("SignInMessageWresultIsMissing"); - } - - /// - /// The sign in message does not contain a required wresult. - /// - internal static string FormatSignInMessageWresultIsMissing() - => GetString("SignInMessageWresultIsMissing"); - - 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; - } - } -} diff --git a/src/Security/Authorization/Core/src/Properties/Resources.Designer.cs b/src/Security/Authorization/Core/src/Properties/Resources.Designer.cs deleted file mode 100644 index c83fa9ea5e..0000000000 --- a/src/Security/Authorization/Core/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authorization -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authorization.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// AuthorizationPolicy must have at least one requirement. - /// - internal static string Exception_AuthorizationPolicyEmpty - { - get => GetString("Exception_AuthorizationPolicyEmpty"); - } - - /// - /// AuthorizationPolicy must have at least one requirement. - /// - internal static string FormatException_AuthorizationPolicyEmpty() - => GetString("Exception_AuthorizationPolicyEmpty"); - - /// - /// The AuthorizationPolicy named: '{0}' was not found. - /// - internal static string Exception_AuthorizationPolicyNotFound - { - get => GetString("Exception_AuthorizationPolicyNotFound"); - } - - /// - /// The AuthorizationPolicy named: '{0}' was not found. - /// - internal static string FormatException_AuthorizationPolicyNotFound(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_AuthorizationPolicyNotFound"), p0); - - /// - /// At least one role must be specified. - /// - internal static string Exception_RoleRequirementEmpty - { - get => GetString("Exception_RoleRequirementEmpty"); - } - - /// - /// At least one role must be specified. - /// - internal static string FormatException_RoleRequirementEmpty() - => GetString("Exception_RoleRequirementEmpty"); - - 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; - } - } -} diff --git a/src/Security/Authorization/Policy/src/Properties/Resources.Designer.cs b/src/Security/Authorization/Policy/src/Properties/Resources.Designer.cs deleted file mode 100644 index d4e50a8631..0000000000 --- a/src/Security/Authorization/Policy/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,44 +0,0 @@ -// -namespace Microsoft.AspNetCore.Authorization.Policy -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Authorization.Policy.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. - /// - internal static string Exception_UnableToFindServices - { - get => GetString("Exception_UnableToFindServices"); - } - - /// - /// Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code. - /// - internal static string FormatException_UnableToFindServices(object p0, object p1, object p2) - => string.Format(CultureInfo.CurrentCulture, GetString("Exception_UnableToFindServices"), 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; - } - } -} diff --git a/src/Servers/HttpSys/src/Properties/Resources.Designer.cs b/src/Servers/HttpSys/src/Properties/Resources.Designer.cs deleted file mode 100644 index 3360ccd879..0000000000 --- a/src/Servers/HttpSys/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,206 +0,0 @@ -// -namespace Microsoft.AspNetCore.Server.HttpSys -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Server.HttpSys.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The destination array is too small. - /// - internal static string Exception_ArrayTooSmall - { - get { return GetString("Exception_ArrayTooSmall"); } - } - - /// - /// The destination array is too small. - /// - internal static string FormatException_ArrayTooSmall() - { - return GetString("Exception_ArrayTooSmall"); - } - - /// - /// End has already been called. - /// - internal static string Exception_EndCalledMultipleTimes - { - get { return GetString("Exception_EndCalledMultipleTimes"); } - } - - /// - /// End has already been called. - /// - internal static string FormatException_EndCalledMultipleTimes() - { - return GetString("Exception_EndCalledMultipleTimes"); - } - - /// - /// The status code '{0}' is not supported. - /// - internal static string Exception_InvalidStatusCode - { - get { return GetString("Exception_InvalidStatusCode"); } - } - - /// - /// The status code '{0}' is not supported. - /// - internal static string FormatException_InvalidStatusCode(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Exception_InvalidStatusCode"), p0); - } - - /// - /// The stream is not seekable. - /// - internal static string Exception_NoSeek - { - get { return GetString("Exception_NoSeek"); } - } - - /// - /// The stream is not seekable. - /// - internal static string FormatException_NoSeek() - { - return GetString("Exception_NoSeek"); - } - - /// - /// The prefix '{0}' is already registered. - /// - internal static string Exception_PrefixAlreadyRegistered - { - get { return GetString("Exception_PrefixAlreadyRegistered"); } - } - - /// - /// The prefix '{0}' is already registered. - /// - internal static string FormatException_PrefixAlreadyRegistered(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Exception_PrefixAlreadyRegistered"), p0); - } - - /// - /// This stream only supports read operations. - /// - internal static string Exception_ReadOnlyStream - { - get { return GetString("Exception_ReadOnlyStream"); } - } - - /// - /// This stream only supports read operations. - /// - internal static string FormatException_ReadOnlyStream() - { - return GetString("Exception_ReadOnlyStream"); - } - - /// - /// More data written than specified in the Content-Length header. - /// - internal static string Exception_TooMuchWritten - { - get { return GetString("Exception_TooMuchWritten"); } - } - - /// - /// More data written than specified in the Content-Length header. - /// - internal static string FormatException_TooMuchWritten() - { - return GetString("Exception_TooMuchWritten"); - } - - /// - /// Only the http and https schemes are supported. - /// - internal static string Exception_UnsupportedScheme - { - get { return GetString("Exception_UnsupportedScheme"); } - } - - /// - /// Only the http and https schemes are supported. - /// - internal static string FormatException_UnsupportedScheme() - { - return GetString("Exception_UnsupportedScheme"); - } - - /// - /// This stream only supports write operations. - /// - internal static string Exception_WriteOnlyStream - { - get { return GetString("Exception_WriteOnlyStream"); } - } - - /// - /// This stream only supports write operations. - /// - internal static string FormatException_WriteOnlyStream() - { - return GetString("Exception_WriteOnlyStream"); - } - - /// - /// The given IAsyncResult does not match this opperation. - /// - internal static string Exception_WrongIAsyncResult - { - get { return GetString("Exception_WrongIAsyncResult"); } - } - - /// - /// The given IAsyncResult does not match this opperation. - /// - internal static string FormatException_WrongIAsyncResult() - { - return GetString("Exception_WrongIAsyncResult"); - } - - /// - /// An exception occured while running an action registered with {0}. - /// - internal static string Warning_ExceptionInOnResponseCompletedAction - { - get { return GetString("Warning_ExceptionInOnResponseCompletedAction"); } - } - - /// - /// An exception occured while running an action registered with {0}. - /// - internal static string FormatWarning_ExceptionInOnResponseCompletedAction(object p0) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Warning_ExceptionInOnResponseCompletedAction"), p0); - } - - 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; - } - } -} diff --git a/src/Servers/IIS/IIS/src/Properties/CoreStrings.Designer.cs b/src/Servers/IIS/IIS/src/Properties/CoreStrings.Designer.cs deleted file mode 100644 index 77b953c2f7..0000000000 --- a/src/Servers/IIS/IIS/src/Properties/CoreStrings.Designer.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -namespace Microsoft.AspNetCore.Server.IIS -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class CoreStrings - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.AspNetCore.Server.IIS.CoreStrings", typeof(CoreStrings).GetTypeInfo().Assembly); - - /// - /// Cannot write to response body after connection has been upgraded. - /// - internal static string ResponseStreamWasUpgraded - { - get => GetString("ResponseStreamWasUpgraded"); - } - - /// - /// Cannot write to response body after connection has been upgraded. - /// - internal static string FormatResponseStreamWasUpgraded() - => GetString("ResponseStreamWasUpgraded"); - - /// - /// The response has been aborted due to an unhandled application exception. - /// - internal static string UnhandledApplicationException - { - get => GetString("UnhandledApplicationException"); - } - - /// - /// The response has been aborted due to an unhandled application exception. - /// - internal static string FormatUnhandledApplicationException() - => GetString("UnhandledApplicationException"); - - /// - /// Cannot upgrade a non-upgradable request. Check IHttpUpgradeFeature.IsUpgradableRequest to determine if a request can be upgraded. - /// - internal static string CannotUpgradeNonUpgradableRequest - { - get => GetString("CannotUpgradeNonUpgradableRequest"); - } - - /// - /// Cannot upgrade a non-upgradable request. Check IHttpUpgradeFeature.IsUpgradableRequest to determine if a request can be upgraded. - /// - internal static string FormatCannotUpgradeNonUpgradableRequest() - => GetString("CannotUpgradeNonUpgradableRequest"); - - /// - /// IHttpUpgradeFeature.UpgradeAsync was already called and can only be called once per connection. - /// - internal static string UpgradeCannotBeCalledMultipleTimes - { - get => GetString("UpgradeCannotBeCalledMultipleTimes"); - } - - /// - /// IHttpUpgradeFeature.UpgradeAsync was already called and can only be called once per connection. - /// - internal static string FormatUpgradeCannotBeCalledMultipleTimes() - => GetString("UpgradeCannotBeCalledMultipleTimes"); - - /// - /// Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead. - /// - internal static string SynchronousReadsDisallowed - { - get => GetString("SynchronousReadsDisallowed"); - } - - /// - /// Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead. - /// - internal static string FormatSynchronousReadsDisallowed() - => GetString("SynchronousReadsDisallowed"); - - /// - /// Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead. - /// - internal static string SynchronousWritesDisallowed - { - get => GetString("SynchronousWritesDisallowed"); - } - - /// - /// Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead. - /// - internal static string FormatSynchronousWritesDisallowed() - => GetString("SynchronousWritesDisallowed"); - - /// - /// Cannot write to the response body, the response has completed. - /// - internal static string WritingToResponseBodyAfterResponseCompleted - { - get => GetString("WritingToResponseBodyAfterResponseCompleted"); - } - - /// - /// Cannot write to the response body, the response has completed. - /// - internal static string FormatWritingToResponseBodyAfterResponseCompleted() - => GetString("WritingToResponseBodyAfterResponseCompleted"); - - /// - /// The connection was aborted by the application. - /// - internal static string ConnectionAbortedByApplication - { - get => GetString("ConnectionAbortedByApplication"); - } - - /// - /// The connection was aborted by the application. - /// - internal static string FormatConnectionAbortedByApplication() - => GetString("ConnectionAbortedByApplication"); - - /// - /// The connection or stream was aborted because a write operation was aborted with a CancellationToken. - /// - internal static string ConnectionOrStreamAbortedByCancellationToken - { - get => GetString("ConnectionOrStreamAbortedByCancellationToken"); - } - - /// - /// The connection or stream was aborted because a write operation was aborted with a CancellationToken. - /// - internal static string FormatConnectionOrStreamAbortedByCancellationToken() - => GetString("ConnectionOrStreamAbortedByCancellationToken"); - - /// - /// {name} cannot be set because the response has already started. - /// - internal static string ParameterReadOnlyAfterResponseStarted - { - get => GetString("ParameterReadOnlyAfterResponseStarted"); - } - - /// - /// {name} cannot be set because the response has already started. - /// - internal static string FormatParameterReadOnlyAfterResponseStarted(object name) - => string.Format(CultureInfo.CurrentCulture, GetString("ParameterReadOnlyAfterResponseStarted", "name"), name); - - /// - /// Request body too large. - /// - internal static string BadRequest_RequestBodyTooLarge - { - get => GetString("BadRequest_RequestBodyTooLarge"); - } - - /// - /// Request body too large. - /// - internal static string FormatBadRequest_RequestBodyTooLarge() - => GetString("BadRequest_RequestBodyTooLarge"); - - /// - /// The maximum request body size cannot be modified after the app has already started reading from the request body. - /// - internal static string MaxRequestBodySizeCannotBeModifiedAfterRead - { - get => GetString("MaxRequestBodySizeCannotBeModifiedAfterRead"); - } - - /// - /// The maximum request body size cannot be modified after the app has already started reading from the request body. - /// - internal static string FormatMaxRequestBodySizeCannotBeModifiedAfterRead() - => GetString("MaxRequestBodySizeCannotBeModifiedAfterRead"); - - /// - /// The maximum request body size cannot be modified after the request has been upgraded. - /// - internal static string MaxRequestBodySizeCannotBeModifiedForUpgradedRequests - { - get => GetString("MaxRequestBodySizeCannotBeModifiedForUpgradedRequests"); - } - - /// - /// The maximum request body size cannot be modified after the request has been upgraded. - /// - internal static string FormatMaxRequestBodySizeCannotBeModifiedForUpgradedRequests() - => GetString("MaxRequestBodySizeCannotBeModifiedForUpgradedRequests"); - - /// - /// Value must be null or a non-negative number. - /// - internal static string NonNegativeNumberOrNullRequired - { - get => GetString("NonNegativeNumberOrNullRequired"); - } - - /// - /// Value must be null or a non-negative number. - /// - internal static string FormatNonNegativeNumberOrNullRequired() - => GetString("NonNegativeNumberOrNullRequired"); - - /// - /// Bad request. - /// - internal static string BadRequest - { - get => GetString("BadRequest"); - } - - /// - /// Bad request. - /// - internal static string FormatBadRequest() - => GetString("BadRequest"); - - /// - /// Increasing the MaxRequestBodySize conflicts with the max value for IIS limit maxAllowedContentLength. HTTP requests that have a content length greater than maxAllowedContentLength will still be rejected by IIS. You can disable the limit by either removing or setting the maxAllowedContentLength value to a higher limit. - /// - internal static string MaxRequestLimitWarning - { - get => GetString("MaxRequestLimitWarning"); - } - - /// - /// Increasing the MaxRequestBodySize conflicts with the max value for IIS limit maxAllowedContentLength. HTTP requests that have a content length greater than maxAllowedContentLength will still be rejected by IIS. You can disable the limit by either removing or setting the maxAllowedContentLength value to a higher limit. - /// - internal static string FormatMaxRequestLimitWarning() - => GetString("MaxRequestLimitWarning"); - - 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; - } - } -} diff --git a/src/Servers/Kestrel/Directory.Build.props b/src/Servers/Kestrel/Directory.Build.props index 25e54c7eb1..05b71894da 100644 --- a/src/Servers/Kestrel/Directory.Build.props +++ b/src/Servers/Kestrel/Directory.Build.props @@ -8,8 +8,6 @@ $(MSBuildThisFileDirectory) $(MSBuildThisFileDirectory)shared\ - true - true diff --git a/src/Tools/dotnet-user-secrets/src/Properties/Resources.Designer.cs b/src/Tools/dotnet-user-secrets/src/Properties/Resources.Designer.cs deleted file mode 100644 index 8ee2a8f38e..0000000000 --- a/src/Tools/dotnet-user-secrets/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,270 +0,0 @@ -// -namespace Microsoft.Extensions.SecretManager.Tools -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.Extensions.SecretManager.Tools.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// Command failed : {message} - /// - internal static string Error_Command_Failed - { - get => GetString("Error_Command_Failed"); - } - - /// - /// Command failed : {message} - /// - internal static string FormatError_Command_Failed(object message) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_Command_Failed", "message"), message); - - /// - /// Missing parameter value for '{name}'. - /// Use the '--help' flag to see info. - /// - internal static string Error_MissingArgument - { - get => GetString("Error_MissingArgument"); - } - - /// - /// Missing parameter value for '{name}'. - /// Use the '--help' flag to see info. - /// - internal static string FormatError_MissingArgument(object name) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_MissingArgument", "name"), name); - - /// - /// Cannot find '{key}' in the secret store. - /// - internal static string Error_Missing_Secret - { - get => GetString("Error_Missing_Secret"); - } - - /// - /// Cannot find '{key}' in the secret store. - /// - internal static string FormatError_Missing_Secret(object key) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_Missing_Secret", "key"), key); - - /// - /// Multiple MSBuild project files found in '{projectPath}'. Specify which to use with the --project option. - /// - internal static string Error_MultipleProjectsFound - { - get => GetString("Error_MultipleProjectsFound"); - } - - /// - /// Multiple MSBuild project files found in '{projectPath}'. Specify which to use with the --project option. - /// - internal static string FormatError_MultipleProjectsFound(object projectPath) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_MultipleProjectsFound", "projectPath"), projectPath); - - /// - /// No secrets configured for this application. - /// - internal static string Error_No_Secrets_Found - { - get => GetString("Error_No_Secrets_Found"); - } - - /// - /// No secrets configured for this application. - /// - internal static string FormatError_No_Secrets_Found() - => GetString("Error_No_Secrets_Found"); - - /// - /// Could not find a MSBuild project file in '{projectPath}'. Specify which project to use with the --project option. - /// - internal static string Error_NoProjectsFound - { - get => GetString("Error_NoProjectsFound"); - } - - /// - /// Could not find a MSBuild project file in '{projectPath}'. Specify which project to use with the --project option. - /// - internal static string FormatError_NoProjectsFound(object projectPath) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_NoProjectsFound", "projectPath"), projectPath); - - /// - /// Could not find the global property 'UserSecretsId' in MSBuild project '{project}'. Ensure this property is set in the project or use the '--id' command line option. - /// - internal static string Error_ProjectMissingId - { - get => GetString("Error_ProjectMissingId"); - } - - /// - /// Could not find the global property 'UserSecretsId' in MSBuild project '{project}'. Ensure this property is set in the project or use the '--id' command line option. - /// - internal static string FormatError_ProjectMissingId(object project) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_ProjectMissingId", "project"), project); - - /// - /// The project file '{path}' does not exist. - /// - internal static string Error_ProjectPath_NotFound - { - get => GetString("Error_ProjectPath_NotFound"); - } - - /// - /// The project file '{path}' does not exist. - /// - internal static string FormatError_ProjectPath_NotFound(object path) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_ProjectPath_NotFound", "path"), path); - - /// - /// Could not load the MSBuild project '{project}'. - /// - internal static string Error_ProjectFailedToLoad - { - get => GetString("Error_ProjectFailedToLoad"); - } - - /// - /// Could not load the MSBuild project '{project}'. - /// - internal static string FormatError_ProjectFailedToLoad(object project) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_ProjectFailedToLoad", "project"), project); - - /// - /// Project file path {project}. - /// - internal static string Message_Project_File_Path - { - get => GetString("Message_Project_File_Path"); - } - - /// - /// Project file path {project}. - /// - internal static string FormatMessage_Project_File_Path(object project) - => string.Format(CultureInfo.CurrentCulture, GetString("Message_Project_File_Path", "project"), project); - - /// - /// Successfully saved {key} = {value} to the secret store. - /// - internal static string Message_Saved_Secret - { - get => GetString("Message_Saved_Secret"); - } - - /// - /// Successfully saved {key} = {value} to the secret store. - /// - internal static string FormatMessage_Saved_Secret(object key, object value) - => string.Format(CultureInfo.CurrentCulture, GetString("Message_Saved_Secret", "key", "value"), key, value); - - /// - /// Successfully saved {number} secrets to the secret store. - /// - internal static string Message_Saved_Secrets - { - get => GetString("Message_Saved_Secrets"); - } - - /// - /// Successfully saved {number} secrets to the secret store. - /// - internal static string FormatMessage_Saved_Secrets(object number) - => string.Format(CultureInfo.CurrentCulture, GetString("Message_Saved_Secrets", "number"), number); - - /// - /// Secrets file path {secretsFilePath}. - /// - internal static string Message_Secret_File_Path - { - get => GetString("Message_Secret_File_Path"); - } - - /// - /// Secrets file path {secretsFilePath}. - /// - internal static string FormatMessage_Secret_File_Path(object secretsFilePath) - => string.Format(CultureInfo.CurrentCulture, GetString("Message_Secret_File_Path", "secretsFilePath"), secretsFilePath); - - /// - /// {key} = {value} - /// - internal static string Message_Secret_Value_Format - { - get => GetString("Message_Secret_Value_Format"); - } - - /// - /// {key} = {value} - /// - internal static string FormatMessage_Secret_Value_Format(object key, object value) - => string.Format(CultureInfo.CurrentCulture, GetString("Message_Secret_Value_Format", "key", "value"), key, value); - - /// - /// The UserSecretsId '{userSecretsId}' cannot contain any characters that cannot be used in a file path. - /// - internal static string Error_InvalidSecretsId - { - get => GetString("Error_InvalidSecretsId"); - } - - /// - /// The UserSecretsId '{userSecretsId}' cannot contain any characters that cannot be used in a file path. - /// - internal static string FormatError_InvalidSecretsId(object userSecretsId) - => string.Format(CultureInfo.CurrentCulture, GetString("Error_InvalidSecretsId", "userSecretsId"), userSecretsId); - - /// - /// The MSBuild project '{project}' has already been initialized with a UserSecretsId. - /// - internal static string Message_ProjectAlreadyInitialized - { - get => GetString("Message_ProjectAlreadyInitialized"); - } - - /// - /// The MSBuild project '{project}' has already been initialized with a UserSecretsId. - /// - internal static string FormatMessage_ProjectAlreadyInitialized(object project) - => string.Format(CultureInfo.CurrentCulture, GetString("Message_ProjectAlreadyInitialized", "project"), project); - - /// - /// Set UserSecretsId to '{userSecretsId}' for MSBuild project '{project}'. - /// - internal static string Message_SetUserSecretsIdForProject - { - get => GetString("Message_SetUserSecretsIdForProject"); - } - - /// - /// Set UserSecretsId to '{userSecretsId}' for MSBuild project '{project}'. - /// - internal static string FormatMessage_SetUserSecretsIdForProject(object userSecretsId, object project) - => string.Format(CultureInfo.CurrentCulture, GetString("Message_SetUserSecretsIdForProject", "userSecretsId", "project"), userSecretsId, project); - - 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; - } - } -} diff --git a/src/Tools/dotnet-watch/src/Properties/Resources.Designer.cs b/src/Tools/dotnet-watch/src/Properties/Resources.Designer.cs deleted file mode 100644 index ee248b1342..0000000000 --- a/src/Tools/dotnet-watch/src/Properties/Resources.Designer.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -namespace Microsoft.DotNet.Watcher.Tools -{ - using System.Globalization; - using System.Reflection; - using System.Resources; - - internal static class Resources - { - private static readonly ResourceManager _resourceManager - = new ResourceManager("Microsoft.DotNet.Watcher.Tools.Resources", typeof(Resources).GetTypeInfo().Assembly); - - /// - /// The project file '{path}' does not exist. - /// - internal static string Error_ProjectPath_NotFound - { - get { return GetString("Error_ProjectPath_NotFound"); } - } - - /// - /// The project file '{path}' does not exist. - /// - internal static string FormatError_ProjectPath_NotFound(object path) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_ProjectPath_NotFound", "path"), path); - } - - /// - /// Multiple MSBuild project files found in '{projectPath}'. Specify which to use with the --project option. - /// - internal static string Error_MultipleProjectsFound - { - get { return GetString("Error_MultipleProjectsFound"); } - } - - /// - /// Multiple MSBuild project files found in '{projectPath}'. Specify which to use with the --project option. - /// - internal static string FormatError_MultipleProjectsFound(object projectPath) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_MultipleProjectsFound", "projectPath"), projectPath); - } - - /// - /// Could not find a MSBuild project file in '{projectPath}'. Specify which project to use with the --project option. - /// - internal static string Error_NoProjectsFound - { - get { return GetString("Error_NoProjectsFound"); } - } - - /// - /// Could not find a MSBuild project file in '{projectPath}'. Specify which project to use with the --project option. - /// - internal static string FormatError_NoProjectsFound(object projectPath) - { - return string.Format(CultureInfo.CurrentCulture, GetString("Error_NoProjectsFound", "projectPath"), projectPath); - } - - /// - /// Cannot specify both '--quiet' and '--verbose' options. - /// - internal static string Error_QuietAndVerboseSpecified - { - get { return GetString("Error_QuietAndVerboseSpecified"); } - } - - /// - /// Cannot specify both '--quiet' and '--verbose' options. - /// - internal static string FormatError_QuietAndVerboseSpecified() - { - return GetString("Error_QuietAndVerboseSpecified"); - } - - 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; - } - } -}