使用VS2011 beta;
在web.config中我有一个<add tagPrefix="aa1" assembly="MyProject" namespace="MyProject" />
为什么,在我的aspx文件中,当我写<aa1:MyControl runat="server" />
时,我得到Unrecognized tag prefix or device filter 'aa1'
当我在aspx中放置<%@ Register TagPrefix="aa1" Namespace="MyProject" Assembly="MyProject" %>
时
我得到Element 'MyControl' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.
这两个警告都不会阻止构建,实际上它在部署时似乎工作正常。但我无法弄清楚为什么VS没有参与其中。