使用System.Web.Mvc是灰色的 [英] using System.Web.Mvc is greyed out

查看:167
本文介绍了使用System.Web.Mvc是灰色的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

引用:

使用System.Web.Mvc;灰色的

using System.Web.Mvc; greyed out

是灰色的,因此会影响我的项目。我不知道为什么它会变灰,因为我明确地将它用于我的项目。当我在另一台机器上运行相同的项目时

is greyed out therefore affecting my project. I don't know why it is greyed out because i am clearly using it my project. when i run the same project on another machine

Quote:

using System.Web.Mvc;灰色

using System.Web.Mvc; greyed out

不是灰色的,项目工作正常。我可能在计算机上丢失了什么?



请在此处查看屏幕截图,它显示了我如何使用标准mvc.net但是它是红色的,因为它不是被认可..请帮助



http://snag.gy/83lcr。 jpg [ ^ ]

is not greyed and project works fine. what could i possibly be missing on my computer??

please see screenshot here, it shows how i am using standard mvc.net but is in red as it is not being recognised .. please help

http://snag.gy/83lcr.jpg[^]

推荐答案

您正在使用名为ReSharper的插件,并且使用显示为灰色的原因是因为它当前未在该类文件中使用,因此可以删除。



当你将鼠标悬停在它们上面时,红色的东西会有一个下划线菜单,显示菜单会让你选择在顶部添加正确的使用和\\或者汇编参考。



命名空间,类等都是基本的.net 101所以在你尝试之前可能需要通过一本关于c#的书来了解基础知识更高级的编码。
You're using a plug-in called ReSharper and the reason the "using" is greyed out is because it isn't currently being used in that class file so can be deleted.

The things that are red have an underline menu when you hover over them, and showing the menu will give you the option to add the correct "using" at the top and\or assembly reference.

Namespaces, classes etc are all basic .net 101 so it might be worth going through a book on c# to get an understanding of the basics before you try more advanced coding.

这篇关于使用System.Web.Mvc是灰色的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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