[英]VS2010 Intellisense for ASP.NET objects disappears after 10 seconds
I recently acquired VS2010 to run one of our global 2010 projects. 我最近收购了VS2010,以运行我们的全球2010年项目之一。 Among other assemblies, it runs the ajaxcontroltoolkit, web.UI.extensions as well as Devexpress (third party).
在其他程序集中,它运行ajaxcontroltoolkit,web.UI.extensions以及Devexpress(第三方)。 Due to project standardization we put in the assembly registers at the top of the aspx file as so.
由于项目标准化,我们将组装寄存器放置在aspx文件顶部。
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
Problem comes now that my ASP.net objects (like asp:Textbox) intellisense does not work for the .aspx pages. 现在出现问题了,我的ASP.net对象(如asp:Textbox)intellisense无法用于.aspx页面。 Works fine for code-behind pages.
适用于代码隐藏页面。 I have tried the following :-
我尝试了以下方法:
Curious now after closing and opening my solution repeatedly, I found that the asp.net Intellisense actually works when the solution is newly opened. 好奇的是,在反复关闭和打开我的解决方案之后,我发现当新打开解决方案时,asp.net Intellisense实际上可以工作。 However, during this time my DevExpress intellisense does not.
但是,在此期间,我的DevExpress intellisense不会。 After approximately 10 seconds, the DevExpress intellisense now works, but all my asp.net intellisense does not.
大约10秒钟后,DevExpress智能感知现在可以正常工作,但是我所有的asp.net智能感知都无法运行。 Which leads me to believe there's some conflict somewhere but how do I fix this ?
这使我相信某个地方存在一些冲突,但是如何解决呢?
I placed the AjaxControlToolkit assembly reference below the DevExpress references and now I get all my intellisense working as per normal. 我将AjaxControlToolkit程序集引用放置在DevExpress引用的下面,现在我的所有智能感知都能正常运行。 Can't say I understand how it works now.
不能说我现在知道它是如何工作的。 Below are the steps I took :-
以下是我采取的步骤:-
It's possible that we removing and replacing the AjaxControlToolkit reference refresh the linkage somehow - a linkage that was previous blocking intellisense access to the ASP.net objects. 我们有可能删除并替换AjaxControlToolkit参考,从而以某种方式刷新了链接-以前阻止智能感知访问ASP.net对象的链接。 Anyway I'm just glad it works now.
无论如何,我很高兴它现在可以工作了。
edit : realized the solution was just to rename the tagprefix of AjaxControlToolkit to something else besides asp. 编辑:意识到解决方案只是将AjaxControlToolkit的tagprefix重命名为asp以外的其他名称。 Something about AjaxControlToolkit was giving me trouble and some VS2010 and because it shared the asp tagprefix, all asp objects stopped working.
关于AjaxControlToolkit的某些问题给了我麻烦,并且给了我一些VS2010,并且由于它共享了asp tagprefix,因此所有asp对象都停止工作。 I renamed it to "ajax" and now I see all my asp objects though the "ajax" objects still do not work.
我将其重命名为“ ajax”,尽管“ ajax”对象仍然无法使用,但现在我看到了所有的asp对象。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.