Remove Razor versioning number from DotNetWatch.targets

Application restarts on changes to Razor files

* .cshtml and .razor files cause dotnet-watch to reload by default
* .cshtml files do not cause VS or dotnet-watch to reload when using RuntimeCompilation

Fixes https://github.com/aspnet/AspNetCore/issues/9644
This commit is contained in:
Pranav K 2019-05-31 15:17:29 -07:00
parent 69139b5023
commit 7a66d5a02f
No known key found for this signature in database
GPG Key ID: 1963DA6D96C3057A
1 changed files with 3 additions and 0 deletions

View File

@ -5,5 +5,8 @@
<!-- Generate hosting attributes during build time compilation to support runtime compilation -->
<GenerateRazorHostingAssemblyInfo Condition="'$(GenerateRazorHostingAssemblyInfo)'==''">true</GenerateRazorHostingAssemblyInfo>
<!-- Prevent VS from restarting the application when cshtml files change since this package handles it -->
<RazorUpToDateReloadFileTypes>$(RazorUpToDateReloadFileTypes.Replace('.cshtml', ''))</RazorUpToDateReloadFileTypes>
</PropertyGroup>
</Project>