文件明明在项目中包含着的,项目发布后找不到视图,The view ‘Index‘ was not found. Searched locations....
右建项目Cms.UI.csproj,不知道什么时候多了以下内容,删除后就可以了
<ItemGroup>
<Content Remove="Areas\Admin\Views\Home\Index.cshtml" />
.....
</ItemGroup>
<ItemGroup>
<None Include="Areas\Admin\Views\Home\Index.cshtml" />
.....
</ItemGroup>