前一段嘗試在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
記錄備查項目