Don't publish cshtml files as part of publish

This commit is contained in:
Pranav K 2017-01-10 17:17:09 -08:00
Родитель 0d5d9c1222
Коммит ac4a0560a3
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -6,10 +6,12 @@
<_MvcRazorResponseFilePath>$(IntermediateOutputPath)microsoft.aspnetcore.mvc.razor.viewcompilation.rsp</_MvcRazorResponseFilePath>
<MvcRazorContentRoot Condition="'$(MvcRazorContentRoot)'==''">$(MSBuildProjectDirectory)</MvcRazorContentRoot>
<MvcRazorExcludeViewFilesFromPublish Condition="'$(MvcRazorExcludeViewFilesFromPublish)'==''">true</MvcRazorExcludeViewFilesFromPublish>
</PropertyGroup>
<ItemGroup>
<_MvcRazorContentFiles Include="$([MSBuild]::EnsureTrailingSlash('$(MvcRazorOutputPath)'))**\*.cshtml" />
<Content Update="**\*.cshtml" CopyToPublishDirectory="Never" Condition="'$(MvcRazorExcludeViewFilesFromPublish)'=='true'" />
</ItemGroup>
<Target Name="_CreateResponseFileForMvcRazorPrecompile">