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:
parent
69139b5023
commit
7a66d5a02f
|
|
@ -5,5 +5,8 @@
|
||||||
|
|
||||||
<!-- Generate hosting attributes during build time compilation to support runtime compilation -->
|
<!-- Generate hosting attributes during build time compilation to support runtime compilation -->
|
||||||
<GenerateRazorHostingAssemblyInfo Condition="'$(GenerateRazorHostingAssemblyInfo)'==''">true</GenerateRazorHostingAssemblyInfo>
|
<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>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue