Enable PreserveCompilationContext by default
This commit is contained in:
parent
33e60ae363
commit
540e8437da
|
|
@ -62,6 +62,8 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
Set to true to allow a Razor code generation to use a persistent build server process.
|
||||
-->
|
||||
<UseRazorBuildServer Condition="'$(UseRazorBuildServer)'==''">false</UseRazorBuildServer>
|
||||
|
||||
<PreserveCompilationContext Condition="'$(PreserveCompilationContext)' == ''">true</PreserveCompilationContext>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(EnableDefaultItems)' == 'true' And '$(EnableDefaultContentItems)' == 'true'">
|
||||
|
|
|
|||
|
|
@ -60,13 +60,6 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
PreserveCompilationContext needs to enabled by default only for "applications" (OutputType = exe) which have one or more Razor files.
|
||||
-->
|
||||
<PropertyGroup Condition="'$(PreserveCompilationContext)' == '' AND '$(OutputType)' == 'exe'">
|
||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
Default values for properties that affect Razor targets to the standard build lifecycle.
|
||||
-->
|
||||
|
|
|
|||
Loading…
Reference in New Issue