[英]Microsoft.CSharp reference not recognized
I'm having a problem with MVC
. 我在使用
MVC
遇到问题。 The tricky thing is that the problem appeared when I installed Windows 8
. 棘手的是,当我安装
Windows 8
时出现了问题。 In Windows 7
I have never ecountered it. 在
Windows 7
我从未遇到过。 I created a new MVC 4
project in Visual Studio 2012
and all my views are messed up ( Viewbag, helpers and everything ). 我在
Visual Studio 2012
创建了一个新的MVC 4
项目,我的所有视图都被弄乱了(Viewbag,helpers等)。 ( framework targeted is 4.5 ) (目标框架为4.5)
Error message: One or more types required to compile a dynamic expression cannot be found. 错误消息: 找不到编译动态表达式所需的一种或多种类型。 Are you missing a reference?
您是否缺少参考?
I have tried a lot of stuff. 我尝试了很多东西。 I have read this stackoverflow link , another stackoverflow link and another one !
我已经阅读了这个stackoverflow链接 , 另一个stackoverflow链接和另一个 链接 ! Nothing works.
没用。 I have also reinstalled
VS2012
. 我还重新安装了
VS2012
。
Any ideas why that error message appears in every View
? 任何想法,为什么该错误消息会出现在每个
View
?
try to install VS2012 Update 3. While the Visual Studio is not running, remove all Bin and Obj folders. 尝试安装VS2012 Update3。在未运行Visual Studio的同时,删除所有Bin和Obj文件夹。 When VS losts in the references it often solves the problems.
当VS在参考文献中遗失时,通常可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.