FineUI 官方论坛

标题: 【经验分享】如何去除FineUIMvc视图中ViewBag错误提示? [打印本页]

作者: sanshi    时间: 2018-12-10 16:41
标题: 【经验分享】如何去除FineUIMvc视图中ViewBag错误提示?
如果你正在VS2013或者VS2017中写FineUIMvc的项目,相信一定遇到过这个问题,视图中的ViewBag会有错误提示:One or more types required to compile a dynamic expression cannot be found.

近期有网友发现,TextBoxFor也有错误提示:The type 'Expression<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

虽然这两个问题都不影响页面在浏览器中的正常运行,但是VS中一直出现红色的错误下划线,让人看着着实不爽,怎么办呢?

[attach]11736[/attach]

作者: 御前带两把刀    时间: 2018-12-10 16:45
哈哈,是的。一直看着不爽




欢迎光临 FineUI 官方论坛 (https://www.fineui.com/bbs/) Powered by Discuz! X3.4