Asp.net Core 部署到Azure.cn的一个小问题

前一段尝试在azure.cn上部署Aps.net Core未成功,报503错误!在网上查到是Azure.cn的问题,未能完美支持Asp.net Core!html

Asp.net Core发表正式版了,又尝试了一下!部署成功!惊喜啊!node

跟着问题又来了,个人项目中使用了Areas,部署完成后,Areas下面的功能均报错,英文的,大意是不能设置环境未Development!json

又检查了一遍,不在Areas下的功能能够正常使用,问题出在Areas上!.net

查了一下文档,发现以下:htm

Publishing Areas文档

To publish all views of the areas folder, in the project.json file include an entry in the publishOptions‘s include node like below:部署

"publishOptions": {
"include": [
"Areas/**/*.cshtml",
....
....
]
Show commentsio

依样画葫芦,成功了!file

记录备查项目

相关文章
相关标签/搜索