Don't publish cshtml files as part of publish
This commit is contained in:
Родитель
0d5d9c1222
Коммит
ac4a0560a3
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче