-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issuearea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
Description
REPRO:
- Open Visual Studio 2019
- Create New ASP.NET CORE Web Application project
- Select Web Application (Model-View-Controller) option
- Add package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
- Update ConfigureServices method in Startup.cs:
services.AddMvc().AddRazorRuntimeCompilation();
- Start debugging project
- Edit Index.cshtml:
@{
ViewData["Title"] = "Home Page";
}
<div class="text-center">
<h1 class="display-4">Welcomeeee</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
</div>
- Refresh page to see changes
EXPECTED:
- Razor views recompile and display updates in browser
ACTUAL:
thewebchameleon
Metadata
Metadata
Assignees
Labels
✔️ Resolution: DuplicateResolved as a duplicate of another issueResolved as a duplicate of another issuearea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
