Specify UpToDateReloadFileTypes (dotnet/aspnetcore-tooling#611)

* Specify UpToDateReloadFileTypes

Specify a list of file extensions that VS will monitor for file changes to reload the app.
Includes .razor and .cshtml files.

\n\nCommit migrated from 9a964127bf
This commit is contained in:
Pranav K 2019-05-22 16:43:02 -07:00 committed by GitHub
parent db66452bbd
commit 66dd6b35d3
1 changed files with 8 additions and 0 deletions

View File

@ -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.