Visual Studio 2015 upd 3在MVC项目上使用Intellisense和CSS的问题 [英] Visual Studio 2015 upd 3 Problem with Intellisense and CSS on MVC project

查看:50
本文介绍了Visual Studio 2015 upd 3在MVC项目上使用Intellisense和CSS的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VB.NET MVC 5项目当然有bootstrap和一些其他CSS文件,我什么时候输入class ="我当然会得到项目中所有已知css类的intellisense列表......

I have a VB.NET MVC 5 project which has of course bootstrap and a few other CSS files, when ever I would type class=" I would of course get the intellisense listing of all the known css classes in the project...

直到最近,当我这样做时,我只得到任何显式输入的类css类的intellisense列表中的class属性。

Until recently, when I do that now I only get any classes that are explicitly typed into a class attribute in the intellisense listing for the css classes.

如果我从基础MS项目模板中创建一个全新的解决方案和一个全新的MVC 5项目,它对该项目再次正常工作,回到另一个orignal项目而不是再一次......

If I make a whole new solution and a brand new MVC 5 project from the base MS project templates it works fine again for that project, go back to the other orignal project and nothing again...

我在网上做了一些建议,比如清理Visual Studio中没有帮助的应用程序数据缓存位置。

I did some suggested things online like cleaning out the app data cache locations for Visual Studio that did not help.

我最终以安全模式启动VS 2015并打开原始项目,输入< div class ="所有intellisense再次工作,关闭IDE并再次启动不是安全模式再次没有CSS intellisense除了在页面上键入
.......

I ended up launching VS 2015 in safe mode and opening the original project, typed in <div class=" and boom all the intellisense worked again, closed the IDE and launched again not in safe mode and once again no CSS intellisense except what is typed on that page.....

世界上有什么原因引起这种情况?我已经卸载了允许我在visual studio中卸载的所有扩展程序,但这根本没有帮助......

What in the world is causing this? I already uninstalled every extension that allows me to uninstall it in visual studio and that did not help at all...

推荐答案

嗨Brian -RESCH,

Hi Brian-RESCH,

你能用一个驱动器共享一个简单的样本吗?所以我们可以使用同一个项目在我们这边真正重复它。

Could you share a simple sample using one drive? So we could really repro it in our side using the same project.

>>如果我从基础MS项目模板中创建一个全新的解决方案和一个全新的MVC 5项目它对于该项目再次正常工作,再回到另一个orignal项目。

>>If I make a whole new solution and a brand new MVC 5 project from the base MS project templates it works fine again for that project, go back to the other orignal project and nothing again.

如果新项目运作良好,那么创建新解决方案怎么样?然后将项目文件添加到新解决方案中,清理并重建整个解决方案,再次测试。也许它与某些项目文件有关。

If a new project works well, how about creating a new solution? And then add the project files to the new solution, clean and rebuild the whole solution, test it again. Maybe it is related to certain project files.

>> 最终以安全模式启动VS 2015并打开原始项目,输入< div class ="所有intellisense再次工作,关闭IDE并再次启动不是安全模式,再次没有CSS智能感知,除了
在该页面输入的内容。

>> ended up launching VS 2015 in safe mode and opening the original project, typed in <div class=" and boom all the intellisense worked again, closed the IDE and launched again not in safe mode and once again no CSS intellisense except what is typed on that page.

如果有效在安全模式下,请点击工具 - >扩展和更新,并检查是否有某些软件包需要更新,并且它们与网络应用程序相关。

If it works well in safe mode, please click TOOLS->Extensions and Updates, and check that whether there are certain packages which need to be updated, and they are related to the web apps.

最佳问候,

杰克


这篇关于Visual Studio 2015 upd 3在MVC项目上使用Intellisense和CSS的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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