Enable PreserveCompilationContext by default

This commit is contained in:
Pranav K 2018-02-21 11:59:09 -08:00
parent 33e60ae363
commit 540e8437da
2 changed files with 2 additions and 7 deletions

View File

@ -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'">

View File

@ -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.
-->