解决MVC添加区域(Area)报错failed to render template because of the following errors

252 阅读1分钟

个人网站:yedajiang44.com

今天在给MVC项目添加域的时候突然出现错误

failed to render template because of the following errors:

未找到程序集 Microsoft.codeandlysis

如图

解决方法:

在vs的程序包管理器控制台输入:Install-Package Microsoft.CodeAnalysis

安装完毕后即可正常添加域了