Add .razor files to UpToDateCheckInput (dotnet/aspnetcore-tooling#359)

Fixes https://github.com/aspnet/AspNetCore/issues/8181\n\nCommit migrated from da168188b4
This commit is contained in:
Pranav K 2019-03-23 14:05:21 -07:00 committed by GitHub
parent 1d53925b8e
commit 31e916cdfd
1 changed files with 6 additions and 0 deletions

View File

@ -299,6 +299,12 @@ Copyright (c) .NET Foundation. All rights reserved.
-->
<UpToDateCheckInput Condition="'$(RazorCompileOnBuild)'=='true'" Include="@(Content->WithMetadataValue('Extension', '.cshtml'))" />
<!--
Add all .razor files to UpToDateCheckInput. Component compilation is not controlled by RazorCompileOnBuild,
which is why this itemgroup is unconditional.
-->
<UpToDateCheckInput Include="@(Content->WithMetadataValue('Extension', '.razor'))" />
<!--
Add Razor output files to UpToDateCheckBuilt - a collection of files used by FastUpToDateCheck to determine
if any of the project's outputs have changed.