When running my new ASP.NET Core MVC application and viewing it in the browser, it seems ASP.NET Core added some kind of ID to some HTML elements.
I'm using .NET 6, and Razor .cshtml
pages.
Why? And how to disable this?
It comes from Blazor CSS Isolation.
You can disable it by adding <ScopedCssEnabled>false</ScopedCssEnabled>
to your app's project file (.csproj).