수정보기 (cshtml)는 기본적 즉시 효력을 정지 할 필요가 페이지 새로 고침하지 않으면 그들이 할 수있는 전에 디버그 프로젝트를 재 - 시작할 때 .NET core3.0 후.이 골칫거리 매우 의심의 여지가 없다.
솔루션
먼저 Nuget 패키지를 설치 :
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
다음에서 다음 조각 ConfigureServices 추가 시작 :
공개 공극 ConfigureServices (IServiceCollection 서비스) { services.AddDbContext <ApplicationDbContext> (옵션 => { options.UseSqlite ( " 데이터 소스 calendar.db = ' ); }); services.AddControllersWithViews () .AddRazorRuntimeCompilation (); }
이 시점에서, 당신은 완료!