錯誤訊息
InvalidOperationException: The view ‘Index’ was not found. The following locations were searched
All the archovios are created and in the right place.
解決方法
Go to your project solution –> Right click and add nuget Packages
calledMicrosoft.AspNetCore.Mvc.Razor.RuntimeCompilationinstall this.Add one line on Programm.cs file
i.e “builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation();”
