The weekend upgrades vs from 15.3 to 15.5, then the VS version from the Community edition, to the Enterprise Edition.
So here's the question:
Can't find the view file after project publish???
The problem is the egg ache, later thought carefully, also did not move anything. See the SKD or 2.0.0
, publish when I use the command line, and VS has no relationship. So there is no careful troubleshooting, the root of the problem, today to see the *.csproj
file found the root cause of the problem:
<PropertyGroup> <TargetFramework>netcoreapp2.0</TargetFramework> <MvcRazorCompileOnPublish>True</MvcRazorCompileOnPublish> <TypeScriptToolsVersion>2.5</TypeScriptToolsVersion> </PropertyGroup>
Originally here do not know when will be <MvcRazorCompileOnPublish>True</MvcRazorCompileOnPublish>
set to True, and then manually changed to False. The familiar view file also appears in the project's Publishing folder.
The problem of not finding the view file after the. NET Core Publish