diff --git a/aspnetcore/mvc/views/view-compilation.md b/aspnetcore/mvc/views/view-compilation.md index 13bc606809..bb0522c8e4 100644 --- a/aspnetcore/mvc/views/view-compilation.md +++ b/aspnetcore/mvc/views/view-compilation.md @@ -127,9 +127,9 @@ Runtime compilation is enabled using the `Microsoft.AspNetCore.Mvc.Razor.Runtime .AddRazorRuntimeCompilation() ``` -For runtime compilation to work when deployed, apps must additionally modify their project files to set the `PreserveCompilationReferences` to `true`. +For runtime compilation to work when deployed, apps must modify their project files to set the `PreserveCompilationReferences` to `true`: -[!code-xml[](view-compilation/sample/RuntimeCompilation.csproj?highlight=3)] +[!code-xml[](view-compilation/sample/RuntimeCompilation.csproj?highlight=4)] ::: moniker-end