Allow file watching with dotnet-watch
\n\nCommit migrated from 42d3a88fed
This commit is contained in:
parent
5c59b78415
commit
9d8e9fb3a7
|
|
@ -321,6 +321,12 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
-->
|
||||
<UpToDateCheckBuilt Include="@(RazorIntermediateAssembly)"
|
||||
Condition="'$(RazorCompileOnBuild)'=='true' AND '@(Content->WithMetadataValue('Extension', '.cshtml'))' != ''" />
|
||||
|
||||
<!-- Set up watchers for dotnet-watch -->
|
||||
<Watch Include="@(Content->WithMetadataValue('Extension', '.razor'))" />
|
||||
|
||||
<Watch Include="@(Content->WithMetadataValue('Extension', '.cshtml'))"
|
||||
Condition="'$(_Targeting30OrNewerRazorLangVersion)' == 'true' AND '$(AddCshtmlFilesToDotNetWatchList)' != 'false'" />
|
||||
</ItemGroup>
|
||||
|
||||
<!--
|
||||
|
|
|
|||
Loading…
Reference in New Issue