parent
09fd006360
commit
bb05b407b3
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue