积极答复者
visual studio 创建shtml文件,style,javascript都没有智能提示了,也不能格式化

问题
答案
全部回复
-
看参考下这里
http://www.mzan.com/article/22832435-mvc-razor-view-intellisense-broken-in-vs-2013.shtml
我列举他说的几个解决方法
1 The problem is that this only seems to show up when you open an MVC site as a project, and not when you open it as a website.
2
I've changed from
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.0.0, Culture=neutral, PublicKeyToken=123JHJF56AD364E35" />
to this:
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=123JHJF56AD364E35" />
And it worked!
3 Try setting the CopyLocal property of the System.Web.Mvc reference to true. Sometimes this helps with Intellisense.
4 Removing the following <system.codedom></system.codedom> block from the root web.config file
5 reinstall ASP.NET MVC
6 moved all of the views from an Area to the root Views folder
专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
-
你好,
想问下现在你的问题解决了吗
如果有可以分享一下你的解决方案吗?
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
-
很高兴你找到解决方案,并且在这个论坛分享。
如果在VS开发中遇到其他问题,欢迎PO帖:)
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.