Remember once .net problem can not find the file after the core publish views

This link: https: //blog.csdn.net/mingminglv1/article/details/81181790
mind problem can not find the file view after a .net core publish

 

After the project publish Can not find view files? ? ?

The problem is very boring, and later carefully thought for a moment, there is not nothing moving. View the SKD or 2.0.0, publish when I use the command line, and VS does not matter. So there is no careful investigation of the root causes of the problem ah today to see * .csproj files found in the root of the problem:

<PropertyGroup>
<TargetFramework> netcoreapp2.0 </ TargetFramework>
<MvcRazorCompileOnPublish> True </ MvcRazorCompileOnPublish>
<TypeScriptToolsVersion> 2.5 </ TypeScriptToolsVersion>
</ PropertyGroup>
original here do not know when the <MvcRazorCompileOnPublish> True </ MvcRazorCompileOnPublish> set true, so changed manually false. Familiar view files appeared in the publication of the project folder.

Guess you like

Origin www.cnblogs.com/study2/p/11440156.html