开发者

MVC2 Futures conflicting with existing System.Web.Mvc

开发者 https://www.devze.com 2023-02-10 03:01 出处:网络
I downloaded MVC2 Futures and referenced it to my current MVC2 Project. However, if I want to call an HtmlHelper from MVC2 Futures I need to <%@ Import Namespace=\"Microsoft.Web.Mvc\" %>

I downloaded MVC2 Futures and referenced it to my current MVC2 Project. However, if I want to call an HtmlHelper from MVC2 Futures I need to <%@ Import Namespace="Microsoft.Web.Mvc" %>

So I decided 开发者_开发问答to add it on my Web.Config:

<pages>
    <namespaces>
        <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Routing" />
        <add namespace="Microsoft.Web.Mvc" />
        <add namespace="Xpedite.Mvc.Html" />
    </namespaces>
</pages>

but, this caused me errors. Could this assemblies co-exist? If yes, How?


I'm pretty sure you need the MVC3 Futures pack:

http://aspnet.codeplex.com/releases/view/54306

The MVC2 Future was made to work against MVC1. I had the same issue and upgrading to the next futures release solved it for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号