I migrated an ASP.NET CORE MVC project from .NET Core 2.1 to .NET 6.
After making relevant changes, the project compiles and starts seemingly OK, but the views aren't found.
Root path is set app.Environment.ContentRootPath = Directory.GetCurrentDirectory(); and the path to views seems to be correct. This is the error message that follows:
The Login.cshtml is in /Views/Account folder, and Build Action is set to Content.


