简体   繁体   中英

Microsoft.CSharp reference not recognized

I'm having a problem with MVC . The tricky thing is that the problem appeared when I installed Windows 8 . In Windows 7 I have never ecountered it. I created a new MVC 4 project in Visual Studio 2012 and all my views are messed up ( Viewbag, helpers and everything ). ( framework targeted is 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 ! Nothing works. I have also reinstalled VS2012 .

Any ideas why that error message appears in every View ?

try to install VS2012 Update 3. While the Visual Studio is not running, remove all Bin and Obj folders. When VS losts in the references it often solves the problems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM