Visual Studio不重新标准MVC [英] Visual Studio not reconsigning standard MVC
问题描述
大家好,
somethig奇怪的是我的visual studio 2013正在发生,它不会识别标准的MVC.net代码,我不知道为什么会这样。例如,这就是我得到的:
http://snag.gy /bCRdy.jpg [ ^ ]
当我将鼠标指针悬停在任何红色部分上时...例如该图像中的ActionResult,它说...无法解析符号ActionResult有谁知道我怎么能解决这个问题?
谢谢你
确保你有使用System.Web.Mvc; $你的.cs文件中的p $ p>
还要确保在解决方案资源管理器,参考资料部分中有参考。
如果没有,那么我建议最简单的解决方法是创建一个新项目,选择正确的模板并将代码复制到新项目中。
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 haveusing 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屋!