.net core 发布 不打包cshtml 文件 需要在 FolderProfile.pubxml 文件中添加 FolderProfile.pubxml <MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>