Visual Studio不重新标准MVC [英] Visual Studio not reconsigning standard MVC

查看:78
本文介绍了Visual Studio不重新标准MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

somethig奇怪的是我的visual studio 2013正在发生,它不会识别标准的MVC.net代码,我不知道为什么会这样。例如,这就是我得到的:



http://snag.gy /bCRdy.jpg [ ^ ]



当我将鼠标指针悬停在任何红色部分上时...例如该图像中的ActionResult,它说...无法解析符号ActionResult有谁知道我怎么能解决这个问题?

谢谢你

解决方案

确保你有

使用System.Web.Mvc;  



还要确保在解决方案资源管理器,参考资料部分中有参考。



如果没有,那么我建议最简单的解决方法是创建一个新项目,选择正确的模板并将代码复制到新项目中。


Hi All,
somethig weird is happening to my visual studio 2013, it won't recognise standard MVC.net code i don't know why this is. for example this is what i get below:

http://snag.gy/bCRdy.jpg[^]

When i hover my mouse pointer on any of the red parts parts .. for example ActionResult in that image , it says ... "can not resolve symbol ActionResult" Does anyone know how i can solve this?
thank you

解决方案

Make sure you have

using System.Web.Mvc;

in your .cs file

Also make sure that you have the reference in your Solution Explorer, References section.

If not then I suggest the easiest way to sort this out is to create a new project, select the correct template and copy your code over into the new project.


这篇关于Visual Studio不重新标准MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆