Fixed line highlight. (#12335)

* Fixed line highlight.

* Update view-compilation.md
pull/12338/head
Kirk Larkin 2019-05-08 21:44:55 +01:00 committed by Rick Anderson
parent 09fd006360
commit bb05b407b3
1 changed files with 2 additions and 2 deletions

View File

@ -127,9 +127,9 @@ Runtime compilation is enabled using the `Microsoft.AspNetCore.Mvc.Razor.Runtime
.AddRazorRuntimeCompilation() .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 ::: moniker-end