Visual Studio 2013 IntelliSense 停止为 ASP.NET MVC5 控制器工作 [英] Visual Studio 2013 IntelliSense stops working for ASP.NET MVC5 Controllers

查看:21
本文介绍了Visual Studio 2013 IntelliSense 停止为 ASP.NET MVC5 控制器工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 2013 ASP.NET MVC 5 项目中遇到了一个奇怪的问题.突然之间,MVC 5 项目的 Controller 类中的 IntelliSense 根本不起作用.

I am facing a weird problem in my Visual Studio 2013 ASP.NET MVC 5 project. All of a sudden, the IntelliSense in the Controller classes of the MVC 5 project are not working at all.

我的解决方案中有其他类库项目,并且 IntelliSense 正在处理这些类库项目文件,但问题仅出现在 MVC 项目中.通常这些问题都是通过重启Visual Studio来解决的:我不仅重启了Visual Studio,还重启了我的电脑,IntelliSense的问题根本没有解决.

I have other class library projects in my solution and IntelliSense is working in those class library project files, but the problem is only within the MVC project. Usually these kinds of problems are solved by restarting Visual Studio: not only did I restart Visual Studio, but I also restarted my computer, and the IntelliSense problem is not getting fixed at all.

还有其他步骤可以让我恢复智能感知吗?

Are there any other steps that can get me IntelliSense back?

推荐答案

我找到了解决问题的方法.那是,1. -> 从解决方案中删除 ASP.NET MVC 项目,2. -> 然后,将 MVC 项目添加回解决方案.

I have found one way to solve the problem. That is, 1. -> Remove the ASP.NET MVC Project from Solution, 2. -> Then, add the MVC Project back to the Solution.

通过执行这些步骤,我可以再次获得 Intellisense.但是,我对这个解决方案并不满意,因为下次当我双击解决方案文件打开解决方案时,我发现智能感知不再工作.我想知道它出现这种行为的真正原因.

By doing these steps, I can get the Intellisense again. But, I am not happy with this solution though, because, next time when I double click the Solution file to open the solution, I see the intellisense is not working again. I would like to know the real reason why it is behaving like that.

最后,我发现问题是由 3rd 方 Visual Studio 扩展引起的.为了找出那个扩展程序,我删除了所有扩展程序,然后一个一个添加扩展程序,然后在找到让我睡不着觉的罪魁祸首扩展程序的地方停下来:)

Finally, I figured out that it was a 3rd party visual studio extension which was causing the problem. In order to find out that extension, I removed all extensions and then, added the extensions one by one and stopped where I found the culprit extension that was taking my sleep away :).

这篇关于Visual Studio 2013 IntelliSense 停止为 ASP.NET MVC5 控制器工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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