【发布时间】:2017-04-23 19:06:05
【问题描述】:
在我的应用程序中,dotnet run 之后,我能够看到由以下人员调用的视图:
return View("~/Views/v1.cshtml");
在我的project.json 中添加以下内容后,我将Views 文件夹复制到publish 文件夹中:
"publishOptions": {
"include": ["Views"]
}
但在发布应用程序后,使用:
dotnet publish --output "publish" --configuration release
并运行:
e:\myApp\publish\dotnet myApp.dll
视图被控制器调用后没有显示在浏览器中。
我在这里犯了什么错误,如何解决?谢谢
【问题讨论】:
标签: asp.net-mvc asp.net-core .net-core