From 7f4b846e9ff709b6d0a82fd1b1c12fc61de575b3 Mon Sep 17 00:00:00 2001 From: Ajay Bhargav B Date: Tue, 30 Jun 2020 12:03:01 -0700 Subject: [PATCH] Made the encodings of .razor and .cshtml files in the repo consistent (#23502) * Added UTF8 BOMs to .razor and .cshtml files * Fixes and unquarantined BOM tests * Update .editorconfig --- .editorconfig | 3 + .../AzureAD/Pages/Account/AccessDenied.cshtml | 2 +- .../Areas/AzureAD/Pages/Account/Error.cshtml | 2 +- .../AzureAD/Pages/Account/SignedOut.cshtml | 2 +- .../AzureAD/Pages/Account/_viewImports.cshtml | 2 +- .../src/Areas/AzureAD/Pages/_ViewStart.cshtml | 2 +- .../Pages/Account/AccessDenied.cshtml | 2 +- .../AzureADB2C/Pages/Account/Error.cshtml | 2 +- .../AzureADB2C/Pages/Account/SignedOut.cshtml | 2 +- .../Pages/Account/_viewImports.cshtml | 2 +- .../Areas/AzureADB2C/Pages/_ViewStart.cshtml | 2 +- .../AzureADB2CSample/Pages/About.cshtml | 2 +- .../AzureADB2CSample/Pages/Index.cshtml | 2 +- .../Pages/Shared/_LoginPartial.cshtml | 2 +- .../Pages/_ViewImports.cshtml | 2 +- .../samples/AzureADSample/Pages/Index.cshtml | 2 +- .../AzureADSample/Pages/Shared/_Layout.cshtml | 2 +- .../Pages/Shared/_LoginPartial.cshtml | 2 +- .../AzureADSample/Pages/_ViewImports.cshtml | 2 +- .../src/CascadingAuthenticationState.razor | 2 +- .../Samples/BlazorServerApp/Pages/Index.razor | 2 +- .../BlazorServerApp/Shared/MainLayout.razor | 2 +- .../BlazorServerApp/Shared/NavMenu.razor | 2 +- .../HostedInAspNet.Client/_Imports.razor | 2 +- .../testassets/StandaloneApp/App.razor | 2 +- .../StandaloneApp/Pages/Counter.razor | 2 +- .../StandaloneApp/Pages/FetchData.razor | 2 +- .../StandaloneApp/Shared/MainLayout.razor | 2 +- .../StandaloneApp/Shared/NavMenu.razor | 2 +- .../testassets/StandaloneApp/_Imports.razor | 2 +- .../Wasm.Authentication.Client/App.razor | 2 +- .../Pages/AdminSettings.razor | 2 +- .../Pages/Authentication.razor | 2 +- .../Pages/FetchData.razor | 2 +- .../Pages/Index.razor | 2 +- .../Pages/MakeAdmin.razor | 2 +- .../Pages/User.razor | 2 +- .../Pages/UserPreferences.razor | 2 +- .../Shared/LoginDisplay.razor | 2 +- .../Shared/NavMenu.razor | 2 +- .../Shared/RedirectToLogin.razor | 2 +- .../Wasm.Authentication.Client/_Imports.razor | 2 +- .../Pages/Error.cshtml | 2 +- .../Pages/Shared/_LoginPartial.cshtml | 2 +- .../BlazingPizza.Server/Pages/Checkout.razor | 2 +- .../BlazingPizza.Server/Pages/Map.razor | 2 +- .../Shared/AddressEditor.razor | 2 +- .../Shared/OrderReview.razor | 2 +- .../Shared/TemplatedDialog.razor | 2 +- .../Shared/TemplatedList.razor | 2 +- .../BlazingPizza.Server/_Imports.razor | 2 +- .../Wasm.Performance/TestApp/App.razor | 2 +- .../TestApp/Pages/Index.razor | 2 +- .../Wasm.Performance/TestApp/Pages/Json.razor | 2 +- .../TestApp/Pages/OrgChart.razor | 2 +- .../TestApp/Pages/PersonDisplay.razor | 2 +- .../TestApp/Pages/RenderList.razor | 2 +- .../TestApp/Pages/TimerComponent.razor | 2 +- .../TestApp/Shared/MainLayout.razor | 2 +- .../Wasm.Performance/TestApp/_Imports.razor | 2 +- .../AddRemoveChildComponents.razor | 2 +- .../AfterRenderInteropComponent.razor | 2 +- .../AsyncEventHandlerComponent.razor | 2 +- .../BasicTestApp/AuthTest/AuthHome.razor | 2 +- .../BasicTestApp/AuthTest/AuthRouter.razor | 2 +- .../AuthTest/AuthRouterLayout.razor | 2 +- .../AuthTest/AuthorizeViewCases.razor | 2 +- ...CascadingAuthenticationStateConsumer.razor | 2 +- .../AuthTest/PageAllowingAnonymous.razor | 2 +- .../AuthTest/PageRequiringAuthorization.razor | 2 +- .../AuthTest/PageRequiringPolicy.razor | 2 +- .../AuthTest/PageRequiringRole.razor | 2 +- .../BasicTestApp/BindCasesComponent.razor | 2 +- .../BasicTestApp/BindGenericComponent.razor | 2 +- .../CascadingValueIntermediary.razor | 2 +- .../CascadingValueReceiveByName.razor | 2 +- .../CascadingValueReceiveByType.razor | 2 +- ...ascadingValueReceiveFixedByInterface.razor | 2 +- .../CascadingValueSupplier.razor | 2 +- .../BasicTestApp/ComponentRefComponent.razor | 2 +- .../ComponentWithParameters.razor | 2 +- .../BasicTestApp/ConcurrentRenderChild.razor | 2 +- .../BasicTestApp/ConcurrentRenderParent.razor | 2 +- .../BasicTestApp/ConfigurationComponent.razor | 2 +- .../BasicTestApp/CounterComponent.razor | 2 +- .../CounterComponentUsingChild.razor | 2 +- .../BasicTestApp/CulturePicker.razor | 2 +- .../BasicTestApp/DataDashComponent.razor | 2 +- .../BasicTestApp/DispatchingComponent.razor | 2 +- .../DuplicateAttributesComponent.razor | 2 +- ...ateAttributesOnElementChildComponent.razor | 2 +- .../BasicTestApp/ElementRefComponent.razor | 2 +- .../BasicTestApp/ErrorComponent.razor | 2 +- .../BasicTestApp/EventBubblingComponent.razor | 2 +- .../EventCallbackTest/ButtonComponent.razor | 2 +- .../EventCallbackCases.razor | 2 +- .../EventCallbackTest/InnerButton.razor | 2 +- .../EventCallbackTest/MiddleButton.razor | 2 +- .../StronglyTypedButton.razor | 2 +- .../EventCallbackTest/TemplatedControl.razor | 2 +- .../EventDisablingComponent.razor | 2 +- .../EventPreventDefaultComponent.razor | 2 +- .../BasicTestApp/ExternalContentPackage.razor | 2 +- .../BasicTestApp/FocusEventComponent.razor | 2 +- .../BasicTestApp/FormsTest/MyOption.razor | 2 +- ...fyPropertyChangedValidationComponent.razor | 2 +- .../FormsTest/SimpleValidationComponent.razor | 2 +- .../TypicalValidationComponent.razor | 2 +- .../BasicTestApp/GlobalizationBindCases.razor | 2 +- .../BasicTestApp/HtmlBlockChildContent.razor | 2 +- .../HtmlEncodedChildContent.razor | 2 +- .../BasicTestApp/HtmlMixedChildContent.razor | 2 +- .../BinaryHttpRequestsComponent.razor | 2 +- .../CookieCounterComponent.razor | 2 +- .../HttpRequestsComponent.razor | 2 +- .../test/testassets/BasicTestApp/Index.razor | 2 +- .../BasicTestApp/InputEventComponent.razor | 2 +- .../BasicTestApp/InteropComponent.razor | 2 +- .../InteropOnInitializationComponent.razor | 2 +- .../BasicTestApp/JsonSerializationCases.razor | 2 +- .../BasicTestApp/KeyCasesComponent.razor | 2 +- .../BasicTestApp/KeyCasesTreeNode.razor | 2 +- .../BasicTestApp/KeyPressEventComponent.razor | 2 +- .../BasicTestApp/LaggyTypingComponent.razor | 2 +- .../BasicTestApp/LimitCounterComponent.razor | 2 +- .../BasicTestApp/LocalizedText.razor | 2 +- .../BasicTestApp/LoggingComponent.razor | 2 +- .../BasicTestApp/LongRunningInterop.razor | 2 +- .../BasicTestApp/MarkupBlockComponent.razor | 2 +- .../BasicTestApp/MouseEventComponent.razor | 2 +- .../MovingCheckboxesComponent.razor | 2 +- .../BasicTestApp/MultipleChildContent.razor | 2 +- .../MultipleComponents/GreeterComponent.razor | 2 +- .../NavigationFailureComponent.razor | 2 +- .../testassets/BasicTestApp/OrderedList.razor | 2 +- .../BasicTestApp/PrerenderedRedirection.razor | 2 +- .../PrerenderedToInteractiveTransition.razor | 2 +- .../PropertiesChangedHandlerParent.razor | 2 +- .../BasicTestApp/RazorTemplates.razor | 2 +- .../Reconnection/ReconnectionComponent.razor | 2 +- .../BasicTestApp/RenderFragmentToggler.razor | 2 +- .../ReorderingFocusComponent.razor | 2 +- .../BasicTestApp/RouterTest/Default.razor | 2 +- .../BasicTestApp/RouterTest/Links.razor | 2 +- .../BasicTestApp/RouterTest/LongPage1.razor | 2 +- .../BasicTestApp/RouterTest/LongPage2.razor | 2 +- .../NavigationManagerComponent.razor | 2 +- .../BasicTestApp/RouterTest/Other.razor | 2 +- .../RouterTest/PreventDefaultCases.razor | 2 +- .../BasicTestApp/RouterTest/TestRouter.razor | 2 +- .../TestRouterWithAdditionalAssembly.razor | 2 +- .../RouterTest/WithNumberParameters.razor | 2 +- .../RouterTest/WithOptionalParameter.razor | 2 +- .../RouterTest/WithParameters.razor | 2 +- .../BasicTestApp/RouterTest/_Imports.razor | 2 +- .../BasicTestApp/RouterTestLayout.razor | 2 +- .../SelectVariantsComponent.razor | 2 +- .../ReliabilityComponent.razor | 2 +- .../BasicTestApp/ShowUriComponent.razor | 2 +- .../StringComparisonComponent.razor | 2 +- .../BasicTestApp/SvgCircleComponent.razor | 2 +- .../BasicTestApp/SvgComponent.razor | 2 +- .../BasicTestApp/SvgWithChildComponent.razor | 2 +- .../BasicTestApp/TemplatedTable.razor | 2 +- .../BasicTestApp/TouchEventComponent.razor | 2 +- .../testassets/BasicTestApp/_Imports.razor | 2 +- .../testassets/ComponentsApp.App/App.razor | 2 +- .../ComponentsApp.App/Pages/Counter.razor | 2 +- .../ComponentsApp.App/Pages/Error.razor | 2 +- .../ComponentsApp.App/Pages/FetchData.razor | 2 +- .../ComponentsApp.App/Pages/Greeter.razor | 2 +- .../ComponentsApp.App/Pages/Index.razor | 2 +- .../ComponentsApp.App/Pages/Ticker.razor | 2 +- .../ComponentsApp.App/Shared/MainLayout.razor | 2 +- .../ComponentsApp.App/Shared/NavMenu.razor | 2 +- .../ComponentsApp.App/_Imports.razor | 2 +- .../ComponentsApp.Server/Pages/_Host.cshtml | 2 +- .../ComponentFromPackage.razor | 2 +- .../RouteableComponentFromPackage.razor | 2 +- .../TestContentPackage/_Imports.razor | 2 +- .../TestServer/Pages/Authentication.cshtml | 2 +- .../Pages/ComponentWithParameters.cshtml | 2 +- .../Pages/MultipleComponents.cshtml | 2 +- .../Pages/MultipleComponentsLayout.cshtml | 2 +- .../TestServer/Pages/PrerenderedHost.cshtml | 2 +- .../TestServer/Pages/_ServerHost.cshtml | 2 +- .../TestServer/Pages/_ViewImports.cshtml | 2 +- .../samples/ApiAuthSample/Pages/Index.cshtml | 2 +- .../Pages/V3/Account/AccessDenied.cshtml | 2 +- .../Pages/V3/Account/ConfirmEmail.cshtml | 2 +- .../V3/Account/ConfirmEmailChange.cshtml | 2 +- .../Pages/V3/Account/ExternalLogin.cshtml | 2 +- .../Pages/V3/Account/ForgotPassword.cshtml | 2 +- .../Identity/Pages/V3/Account/Login.cshtml | 2 +- .../Identity/Pages/V3/Account/Logout.cshtml | 2 +- .../V3/Account/Manage/ChangePassword.cshtml | 2 +- .../Pages/V3/Account/Manage/Email.cshtml | 2 +- .../Pages/V3/Account/Manage/Index.cshtml | 2 +- .../V3/Account/Manage/SetPassword.cshtml | 2 +- .../Account/Manage/ShowRecoveryCodes.cshtml | 2 +- .../Manage/TwoFactorAuthentication.cshtml | 2 +- .../Pages/V3/Account/Manage/_ManageNav.cshtml | 2 +- .../V3/Account/Manage/_ViewImports.cshtml | 2 +- .../Identity/Pages/V3/Account/Register.cshtml | 2 +- .../V3/Account/RegisterConfirmation.cshtml | 2 +- .../V3/Account/ResendEmailConfirmation.cshtml | 2 +- .../Pages/V3/Account/ResetPassword.cshtml | 2 +- .../Pages/V3/Account/_ViewImports.cshtml | 2 +- .../Areas/Identity/Pages/V3/_Layout.cshtml | 2 +- .../Identity/Pages/V3/_ViewImports.cshtml | 2 +- .../Pages/V4/Account/AccessDenied.cshtml | 2 +- .../Pages/V4/Account/ConfirmEmail.cshtml | 2 +- .../V4/Account/ConfirmEmailChange.cshtml | 2 +- .../Pages/V4/Account/ExternalLogin.cshtml | 2 +- .../Pages/V4/Account/ForgotPassword.cshtml | 2 +- .../Identity/Pages/V4/Account/Login.cshtml | 2 +- .../Identity/Pages/V4/Account/Logout.cshtml | 2 +- .../V4/Account/Manage/ChangePassword.cshtml | 2 +- .../Account/Manage/DeletePersonalData.cshtml | 2 +- .../Pages/V4/Account/Manage/Disable2fa.cshtml | 2 +- .../Pages/V4/Account/Manage/Email.cshtml | 2 +- .../Pages/V4/Account/Manage/Index.cshtml | 2 +- .../V4/Account/Manage/SetPassword.cshtml | 2 +- .../Account/Manage/ShowRecoveryCodes.cshtml | 2 +- .../Manage/TwoFactorAuthentication.cshtml | 2 +- .../Pages/V4/Account/Manage/_ManageNav.cshtml | 2 +- .../V4/Account/Manage/_ViewImports.cshtml | 2 +- .../Identity/Pages/V4/Account/Register.cshtml | 2 +- .../V4/Account/RegisterConfirmation.cshtml | 2 +- .../V4/Account/ResendEmailConfirmation.cshtml | 2 +- .../Pages/V4/Account/ResetPassword.cshtml | 2 +- .../Pages/V4/Account/_ViewImports.cshtml | 2 +- .../Areas/Identity/Pages/V4/_Layout.cshtml | 2 +- .../Identity/Pages/V4/_ViewImports.cshtml | 2 +- .../Pages/Account/Manage/Index.cshtml | 2 +- .../Identity/Pages/Account/Register.cshtml | 2 +- .../Areas/Identity/Pages/_ViewImports.cshtml | 2 +- .../Views/Shared/_Layout.cshtml | 2 +- .../Views/Shared/_LoginPartial.cshtml | 2 +- .../Views/_ViewImports.cshtml | 2 +- .../Views/Account/Login.cshtml | 2 +- .../Views/Manage/ManageLogins.cshtml | 2 +- .../Views/Shared/_Layout.cshtml | 2 +- .../Views/Shared/_LoginPartial.cshtml | 2 +- .../Views/_ViewImports.cshtml | 2 +- .../Pages/Shared/_LoginPartial.cshtml | 2 +- .../Pages/_ViewImports.cshtml | 2 +- .../Views/ErrorPage.cshtml | 2 +- .../Views/Obsolete/WelcomePage.cshtml | 2 +- .../Views/Home/Chart.cshtml | 2 +- .../Views/Home/ES2015Transpilation.cshtml | 2 +- .../Views/Home/Index.cshtml | 2 +- .../Views/Home/Prerendering.cshtml | 2 +- .../Views/Shared/Error.cshtml | 2 +- .../Views/_ViewImports.cshtml | 2 +- .../Views/_ViewStart.cshtml | 2 +- .../MusicStore/Pages/PageThatThrows.cshtml | 2 +- .../MusicStore/Views/Shared/_Layout.cshtml | 2 +- .../Views/Shared/_LoginPartial.cshtml | 2 +- .../Views/ShoppingCart/Index.cshtml | 2 +- .../MusicStore/Views/_ViewImports.cshtml | 2 +- .../Pages/Shared/_Layout.cshtml | 2 +- .../RazorRendering/Pages/_ViewImports.cshtml | 2 +- .../RazorRendering/Pages/_ViewStart.cshtml | 2 +- .../Views/HelloWorld.cshtml | 2 +- .../Views/HelperDynamic.cshtml | 2 +- .../Views/HelperExtensions.cshtml | 2 +- .../Views/HelperPartialAsync.cshtml | 2 +- .../Views/HelperPartialSync.cshtml | 2 +- .../Views/HelperPartialTagHelper.cshtml | 2 +- .../Views/HelperPartial_Partial.cshtml | 2 +- .../Views/HelperTyped.cshtml | 2 +- .../MvcSandbox/Components/_Imports.razor | 2 +- .../MvcSandbox/Pages/_ViewImports.cshtml | 2 +- .../MvcSandbox/Views/_ViewImports.cshtml | 2 +- .../RazorComponents/_Imports.razor | 2 +- .../Views/PageRoute/AttributeRouteView.cshtml | 2 +- .../PageRoute/ConventionalRouteView.cshtml | 2 +- .../ViewDataInViewComponent.cshtml | 2 +- .../ViewDataPropertyToView.cshtml | 2 +- .../Views/ViewDataProperty/_Layout.cshtml | 2 +- .../Views/Another/InServicesTagHelper.cshtml | 2 +- .../ErrorPageMiddleware/RuntimeError.cshtml | 2 +- .../Customer/Pages/PartialWithFallback.cshtml | 2 +- .../Customer/Pages/PartialWithOptional.cshtml | 2 +- .../Areas/Customer/Pages/_ViewImports.cshtml | 2 +- .../Pages/CacheTagHelper_VaryByCulture.cshtml | 2 +- .../Pages/_ViewImports.cshtml | 2 +- .../Views/Catalog_CacheTagHelper/Deals.cshtml | 2 +- .../Catalog_CacheTagHelper/Details.cshtml | 2 +- .../_ViewImports.cshtml | 2 +- .../CreateWarehouse.cshtml | 2 +- .../HtmlGeneration_Home/EditWarehouse.cshtml | 2 +- .../EditorTemplates/Employee.cshtml | 2 +- .../GenderUsingTagHelpers.cshtml | 2 +- .../HtmlGeneration_Home/Environment.cshtml | 2 +- .../Views/HtmlGeneration_Home/Form.cshtml | 2 +- .../Views/HtmlGeneration_Home/Image.cshtml | 2 +- .../Views/HtmlGeneration_Home/Index.cshtml | 2 +- .../Views/HtmlGeneration_Home/Input.cshtml | 2 +- .../PartialTagHelperWithoutModel.cshtml | 2 +- .../Views/HtmlGeneration_Home/Product.cshtml | 2 +- .../HtmlGeneration_Home/ProductList.cshtml | 2 +- .../HtmlGeneration_Home/StatusMessage.cshtml | 2 +- .../HtmlGeneration_Home/Warehouse.cshtml | 2 +- .../_EmployeePartial.cshtml | 2 +- .../_ProductPartial.cshtml | 2 +- .../_ProductRecommendations.cshtml | 2 +- .../_StatusMessagePartial.cshtml | 2 +- .../GetWeirdWithHtmlHelpers.cshtml | 2 +- .../GetWeirdWithTagHelpers.cshtml | 2 +- .../Shared/Components/Splash/Default.cshtml | 2 +- .../Views/Shared/Customer.cshtml | 2 +- .../Views/Shared/_Partial.cshtml | 2 +- .../Pages/ClassLibraryPages/Overriden.cshtml | 2 +- .../Pages/ClassLibraryPages/Served.cshtml | 2 +- .../Areas/Accounts/Pages/About.cshtml | 2 +- .../Pages/Manage/RenderPartials.cshtml | 2 +- .../Pages/Manage/_PartialInManage.cshtml | 2 +- .../Areas/Accounts/Pages/PageWithLinks.cshtml | 2 +- .../Pages/PageWithRouteTemplate.cshtml | 2 +- .../Accounts/Pages/RelativeLinks/Index.cshtml | 2 +- .../Pages/RequiresAuth/AllowAnonymous.cshtml | 2 +- .../Accounts/Pages/RequiresAuth/Index.cshtml | 2 +- .../Pages/_PartialInAreaPagesRoot.cshtml | 2 +- .../Areas/Accounts/Views/Home/Index.cshtml | 2 +- .../Shared/_PartialInAreasSharedViews.cshtml | 2 +- .../Areas/Accounts/_ViewImports.cshtml | 2 +- .../Areas/Products/Pages/List.cshtml | 2 +- .../InjectedPageProperties.cshtml | 2 +- .../RazorPagesWebSite/ModelAsFilter.cshtml | 2 +- .../ModelWithPageFilter.cshtml | 2 +- .../ModelWithResponseCache.cshtml | 2 +- .../RazorPagesWebSite/Pages/Admin/Edit.cshtml | 2 +- .../Antiforgery/AntiforgeryDefault.cshtml | 2 +- .../Antiforgery/IgnoreAntiforgery.cshtml | 2 +- .../Pages/Antiforgery/_ViewImports.cshtml | 2 +- .../Pages/ClassLibraryPages/Overriden.cshtml | 2 +- .../AuthFolder/AnonymousViaModel.cshtml | 2 +- .../Pages/CustomBaseType/Page.cshtml | 2 +- .../Pages/CustomBaseType/PageWithModel.cshtml | 2 +- .../Pages/CustomBaseType/_ViewImports.cshtml | 2 +- .../Pages/CustomBaseType/_ViewStart.cshtml | 2 +- .../Pages/CustomPrefix/Custom.cshtml | 2 +- .../Pages/Localized/Page.cshtml | 2 +- .../Pages/Localized/PageWithModel.cshtml | 2 +- .../Pages/ModelWithAuthFilter.cshtml | 2 +- .../RazorPagesWebSite/Pages/NotTheRoot.cshtml | 2 +- .../BindPropertiesOnModel.cshtml | 2 +- ...indPropertiesWithSupportsGetOnModel.cshtml | 2 +- .../Pages/Redirects/Index.cshtml | 2 +- .../Pages/Redirects/Redirect.cshtml | 2 +- .../Redirects/RedirectFromHandler.cshtml | 2 +- .../Pages/Redirects/RedirectFromModel.cshtml | 2 +- .../Pages/Redirects/RedirectFromPage.cshtml | 2 +- .../Pages/Redirects/RedirectToSelf.cshtml | 2 +- .../Pages/Redirects/RedirectToSibling.cshtml | 2 +- .../Pages/Redirects/SubDir/SubDirPage.cshtml | 2 +- .../Pages/Routes/RouteUsingDefaultName.cshtml | 2 +- .../Pages/Routes/Sibling.cshtml | 2 +- .../Pages/Routes/_ViewImports.cshtml | 2 +- .../Pages/SearchInPages.cshtml | 2 +- .../Pages/Shared/_CustomBaseTypeLayout.cshtml | 2 +- .../Pages/Shared/_FileInShared.cshtml | 2 +- .../Pages/TagHelper/CrossPost.cshtml | 2 +- .../Pages/TagHelper/FormAction.cshtml | 2 +- .../Pages/TagHelper/PathTraversalLinks.cshtml | 2 +- .../Pages/TagHelper/PostWithHandler.cshtml | 2 +- .../Pages/TagHelper/SelfPost.cshtml | 2 +- .../Pages/TagHelper/SiblingLinks.cshtml | 2 +- .../Pages/TagHelper/SubDir/SubDirPage.cshtml | 2 +- .../Pages/TagHelper/SubDirectoryLinks.cshtml | 2 +- .../Pages/TagHelper/_ViewImports.cshtml | 2 +- .../PageHandlerWithValidation.cshtml | 2 +- .../PageWithCompareValidation.cshtml | 2 +- .../Validation/PageWithValidation.cshtml | 2 +- .../Pages/Validation/_ViewImports.cshtml | 2 +- .../Pages/ViewData/ViewDataInPage.cshtml | 2 +- .../ViewDataInPageWithoutModel.cshtml | 2 +- .../ViewDataSetInViewStart/Index.cshtml | 2 +- .../ViewDataSetInViewStart/_Layout.cshtml | 2 +- .../ViewDataToViewComponentPage.cshtml | 2 +- .../Pages/ViewData/_Layout.cshtml | 2 +- .../Pages/ViewData/_ViewImports.cshtml | 2 +- .../WithViewStart/ViewStartAtRoot.cshtml | 2 +- .../Views/Shared/_FileInShared.cshtml | 2 +- .../Views/Shared/_GlobalLayout.cshtml | 2 +- .../RazorPagesWebSite/_ViewStart.cshtml | 2 +- .../RazorWebSite/Pages/Shared/_Layout.cshtml | 2 +- .../Pages/Shared/_SharedFromPages.cshtml | 2 +- .../Views/BackSlash/BackSlashView.cshtml | 2 +- .../Views/BackSlash/_BackSlashPartial.cshtml | 2 +- .../Views/BackSlash/_Layout.cshtml | 2 +- .../Views/NestedViewStarts/_ViewStart.cshtml | 2 +- .../Views/ViewEngine/SearchInPages.cshtml | 2 +- .../_Partial.cshtml | 2 +- .../AllowAnonymousPageViaConvention.cshtml | 2 +- .../Pages/AllowAnonymousPageViaModel.cshtml | 2 +- .../Pages/AuthorizePageViaConvention.cshtml | 2 +- .../Pages/AuthorizePageViaModel.cshtml | 2 +- .../SecurityWebSite/Pages/PagesHome.cshtml | 2 +- .../SecurityWebSite/Pages/_ViewImports.cshtml | 2 +- .../Views/Employee/Create.cshtml | 2 +- .../Views/Employee/Details.cshtml | 2 +- .../TagHelpersWebSite/Views/Home/Index.cshtml | 2 +- .../_ViewImports.cshtml | 2 +- .../Angular-CSharp/ClientApp/.editorconfig | 3 + .../Angular-CSharp/Pages/_ViewImports.cshtml | 2 +- .../React-CSharp/Pages/_ViewImports.cshtml | 2 +- .../Pages/_ViewImports.cshtml | 2 +- .../test/ByteOrderMarkTest.cs | 111 +++++++++--------- .../test/ProjectTemplates.Tests.csproj | 10 +- .../ModelExpressionTagHelper.cshtml | 2 +- .../ModelExpressionTagHelper.cshtml | 2 +- .../ModelExpressionTagHelper.cshtml | 2 +- .../CSharp7.cshtml | 2 +- .../Implements.cshtml | 2 +- .../MSN.cshtml | 2 +- .../Shared/_ValidationScriptsPartial.cshtml | 2 +- .../Views/_ViewImports.cshtml | 2 +- .../ClassLibrary/Views/_ViewImports.cshtml | 2 +- .../ClassLibrary2/Views/_ViewImports.cshtml | 2 +- .../Components/Pages/Counter.razor | 2 +- .../Components/Pages/FetchData.razor | 2 +- .../Components/Shared/NavMenu.razor | 2 +- .../ComponentApp/Components/_Imports.razor | 2 +- .../ComponentLibrary/GenericComponent.razor | 2 +- .../ComponentLibrary/MyComponent.razor | 2 +- .../LargeProject/Views/Home/View000.cshtml | 2 +- .../LargeProject/Views/Shared/_Layout.cshtml | 2 +- .../Views/Shared/_ViewImports.cshtml | 2 +- .../LinkedDir/LinkedErrorFile.cshtml | 2 +- .../testassets/LinkedDir/LinkedFile.cshtml | 2 +- .../testassets/LinkedDir/LinkedFile2.cshtml | 2 +- .../testassets/LinkedDir/LinkedFile3.cshtml | 2 +- .../Components/Counter.razor | 2 +- .../MvcWithComponents/TestComponent.razor | 2 +- .../Views/Home/#FileName.cshtml | 2 +- .../Views/Shared/NavMenu.razor | 2 +- .../Views/_ViewImports.cshtml | 2 +- .../Shared/_ValidationScriptsPartial.cshtml | 2 +- .../SimpleMvc/Views/_ViewImports.cshtml | 2 +- .../Shared/_ValidationScriptsPartial.cshtml | 2 +- .../SimpleMvc21/Views/_ViewImports.cshtml | 2 +- .../SimpleMvc31/Views/Home/Index.cshtml | 2 +- .../SimpleMvc31/Views/Shared/Error.cshtml | 2 +- .../SimpleMvc31/Views/_ViewStart.cshtml | 2 +- .../Areas/Products/Pages/_ViewImports.cshtml | 2 +- .../SimplePages/Pages/_Layout.cshtml | 2 +- .../SimplePages/Pages/_ViewImports.cshtml | 2 +- .../Shared/_ValidationScriptsPartial.cshtml | 2 +- .../Views/_ViewImports.cshtml | 2 +- .../Shared/_ValidationScriptsPartial.cshtml | 2 +- .../samples/Cookies/Views/_ViewImports.cshtml | 2 +- .../Views/Account/Signin.cshtml | 2 +- .../DynamicSchemes/Pages/_Layout.cshtml | 2 +- .../DynamicSchemes/Pages/_ViewImports.cshtml | 2 +- .../Pages/Account/AccessDenied.cshtml | 2 +- .../Pages/Account/ConfirmEmail.cshtml | 2 +- .../Pages/Account/ExternalLogin.cshtml | 2 +- .../Pages/Account/ForgotPassword.cshtml | 2 +- .../Pages/Account/Login.cshtml | 2 +- .../Account/Manage/ChangePassword.cshtml | 2 +- .../Pages/Account/Manage/Index.cshtml | 2 +- .../Pages/Account/Manage/SetPassword.cshtml | 2 +- .../Manage/TwoFactorAuthentication.cshtml | 2 +- .../Pages/Account/Manage/_ViewImports.cshtml | 2 +- .../Pages/Account/Register.cshtml | 2 +- .../Pages/Account/ResetPassword.cshtml | 2 +- .../Pages/Account/SignedOut.cshtml | 2 +- .../Pages/Account/_ViewImports.cshtml | 2 +- .../Pages/MyClaims.cshtml | 2 +- .../Pages/_LoginPartial.cshtml | 2 +- .../Pages/_ViewImports.cshtml | 2 +- .../Shared/_ValidationScriptsPartial.cshtml | 2 +- .../Views/_ViewImports.cshtml | 2 +- .../Views/Shared/_LoginPartial.cshtml | 2 +- .../Shared/_ValidationScriptsPartial.cshtml | 2 +- src/Shared/ErrorPage/Views/ErrorPage.cshtml | 2 +- 479 files changed, 547 insertions(+), 530 deletions(-) diff --git a/.editorconfig b/.editorconfig index 00aaa787e7..b1debc81f7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -35,3 +35,6 @@ indent_size = 4 [*.sh] indent_size = 4 end_of_line = lf + +[*.{razor,cshtml}] +charset = utf-8-bom diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml index 487effa8c1..591045d3cd 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/AccessDenied.cshtml @@ -1,4 +1,4 @@ -@page +@page @model AccessDeniedModel @{ ViewData["Title"] = "Access denied"; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml index 30e569ead1..173f083425 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/Error.cshtml @@ -1,4 +1,4 @@ -@page +@page @model ErrorModel @{ ViewData["Title"] = "Error"; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml index ef41507d5b..92ede3a145 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/SignedOut.cshtml @@ -1,4 +1,4 @@ -@page +@page @model SignedOutModel @{ ViewData["Title"] = "Signed out"; diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/_viewImports.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/_viewImports.cshtml index 8f74cb9c22..69cc620e98 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/_viewImports.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/Account/_viewImports.cshtml @@ -1,2 +1,2 @@ -@using Microsoft.AspNetCore.Authentication.AzureAD.UI.Internal +@using Microsoft.AspNetCore.Authentication.AzureAD.UI.Internal @namespace Microsoft.AspNetCore.Authentication.AzureAD.UI.Pages.Internal \ No newline at end of file diff --git a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/_ViewStart.cshtml b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/_ViewStart.cshtml index 6b488b0592..c51721cd40 100644 --- a/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/_ViewStart.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureAD.UI/src/Areas/AzureAD/Pages/_ViewStart.cshtml @@ -1,4 +1,4 @@ -@using Microsoft.AspNetCore.Hosting +@using Microsoft.AspNetCore.Hosting @using Microsoft.AspNetCore.Mvc.ViewEngines @inject IWebHostEnvironment Environment diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml index ac4c026e2f..2084bbf67a 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/AccessDenied.cshtml @@ -1,4 +1,4 @@ -@page +@page @model AccessDeniedModel @{ ViewData["Title"] = "Access denied"; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml index 60da74a372..046fdddb56 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/Error.cshtml @@ -1,4 +1,4 @@ -@page +@page @model ErrorModel @{ ViewData["Title"] = "Error"; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml index b29fbad79c..13e90c4216 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/SignedOut.cshtml @@ -1,4 +1,4 @@ -@page +@page @model SignedOutModel @{ ViewData["Title"] = "Signed out"; diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/_viewImports.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/_viewImports.cshtml index fdcfe574d0..655317c358 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/_viewImports.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/Account/_viewImports.cshtml @@ -1,2 +1,2 @@ -@using Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Internal +@using Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Internal @namespace Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Pages.Internal \ No newline at end of file diff --git a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/_ViewStart.cshtml b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/_ViewStart.cshtml index 6b488b0592..c51721cd40 100644 --- a/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/_ViewStart.cshtml +++ b/src/Azure/AzureAD/Authentication.AzureADB2C.UI/src/Areas/AzureADB2C/Pages/_ViewStart.cshtml @@ -1,4 +1,4 @@ -@using Microsoft.AspNetCore.Hosting +@using Microsoft.AspNetCore.Hosting @using Microsoft.AspNetCore.Mvc.ViewEngines @inject IWebHostEnvironment Environment diff --git a/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/About.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/About.cshtml index 15054f57f1..43c5750248 100644 --- a/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/About.cshtml +++ b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/About.cshtml @@ -1,4 +1,4 @@ -@page +@page @model AzureADB2CSample.Pages.AboutModel @{ } diff --git a/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Index.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Index.cshtml index 29064539bb..44a7323c75 100644 --- a/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Index.cshtml +++ b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Index.cshtml @@ -1,4 +1,4 @@ -@page +@page @model IndexModel @{ ViewData["Title"] = "Home page"; diff --git a/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Shared/_LoginPartial.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Shared/_LoginPartial.cshtml index a40eccbe1d..f2636c44a9 100644 --- a/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Shared/_LoginPartial.cshtml +++ b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/Shared/_LoginPartial.cshtml @@ -1,4 +1,4 @@ -@using Microsoft.AspNetCore.Authentication.AzureADB2C.UI +@using Microsoft.AspNetCore.Authentication.AzureADB2C.UI @using Microsoft.Extensions.Options @inject IOptionsMonitor AzureADB2COptions @{ diff --git a/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/_ViewImports.cshtml b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/_ViewImports.cshtml index 4610d17e9b..c5c2887c3c 100644 --- a/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/_ViewImports.cshtml +++ b/src/Azure/AzureAD/samples/AzureADB2CSample/Pages/_ViewImports.cshtml @@ -1,2 +1,2 @@ -@namespace AzureADB2CSample.Pages +@namespace AzureADB2CSample.Pages @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/src/Azure/AzureAD/samples/AzureADSample/Pages/Index.cshtml b/src/Azure/AzureAD/samples/AzureADSample/Pages/Index.cshtml index 29064539bb..44a7323c75 100644 --- a/src/Azure/AzureAD/samples/AzureADSample/Pages/Index.cshtml +++ b/src/Azure/AzureAD/samples/AzureADSample/Pages/Index.cshtml @@ -1,4 +1,4 @@ -@page +@page @model IndexModel @{ ViewData["Title"] = "Home page"; diff --git a/src/Azure/AzureAD/samples/AzureADSample/Pages/Shared/_Layout.cshtml b/src/Azure/AzureAD/samples/AzureADSample/Pages/Shared/_Layout.cshtml index d30242ee4e..00bd0fa8c5 100644 --- a/src/Azure/AzureAD/samples/AzureADSample/Pages/Shared/_Layout.cshtml +++ b/src/Azure/AzureAD/samples/AzureADSample/Pages/Shared/_Layout.cshtml @@ -1,4 +1,4 @@ - + diff --git a/src/Azure/AzureAD/samples/AzureADSample/Pages/Shared/_LoginPartial.cshtml b/src/Azure/AzureAD/samples/AzureADSample/Pages/Shared/_LoginPartial.cshtml index c45e1e4230..dfecec8c74 100644 --- a/src/Azure/AzureAD/samples/AzureADSample/Pages/Shared/_LoginPartial.cshtml +++ b/src/Azure/AzureAD/samples/AzureADSample/Pages/Shared/_LoginPartial.cshtml @@ -1,4 +1,4 @@ -@if (User.Identity.IsAuthenticated) +@if (User.Identity.IsAuthenticated) {