I\'m trying to create a ASP.NET Core MVC test app running on OSX using VS Code. I\'m getting a \'view not found\' exception when accessing the default Home/index (or any oth
I just upgraded from .net core 2.2 to 3. Two ways to resolve I found:
Either call AddRazorRuntimeCompilation() when configuring mvc, like:
services.AddControllersWithViews()
.AddRazorRuntimeCompilation(...);
more info here: https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.0&tabs=visual-studio#opt-in-to-runtime-compilation
Or remove the following lines from the .csproj:
false
false