我想在Microsoft.Web.Helpers dll中使用Linkshare帮助程序。我添加了对我的项目的引用,但是如果尝试在vbhtml文件中使用它,Visual Studio用蓝色波浪线强调它并且告诉我它是无法访问的等等等等。我甚至添加了对这些webmatrix dll的引用,如下所述:http://hadsy.net/2011/01/19/ASPNETMVC3MicrosoftWebHelpersErrorTheTypeOrNamespaceNameSimpleMembershipProviderCouldNotBeFound.aspx
如何让链接共享和其他助手工作?
答案 0 :(得分:0)
您还需要在命名空间
下的web.config中添加对程序集的引用即;
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<namespaces>
<clear/>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
...
<add namespace="Microsoft.Web.Helpers"/>
答案 1 :(得分:0)
解决方案是在添加程序集引用后构建项目 然后我就可以使用linkshare helper
了