Skip to content

Commit

Permalink
Specify UpToDateReloadFileTypes (#611)
Browse files Browse the repository at this point in the history
* Specify UpToDateReloadFileTypes

Specify a list of file extensions that VS will monitor for file changes to reload the app.
Includes .razor and .cshtml files.
  • Loading branch information
pranavkm authored May 22, 2019
1 parent 5bcd008 commit 9a96412
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ Copyright (c) .NET Foundation. All rights reserved.

<Project ToolsVersion="14.0">

<PropertyGroup>
<!--
Defines the list of file extensions that VS will monitor to reload the application.
We'll only define these for C# projects targeting RazorLangVersion 3.0 or later, and let VS use defaults in other cases.
-->
<UpToDateReloadFileTypes Condition="'$(Language)'=='C#' AND '$(_Targeting30OrNewerRazorLangVersion)' == 'true'">$(UpToDateReloadFileTypes);.cs;.razor;.resx;.cshtml</UpToDateReloadFileTypes>
</PropertyGroup>

<ItemGroup>
<!--
Defines the generic .NET Core 'Razor' capability.
Expand Down

0 comments on commit 9a96412

Please sign in to comment.