Any support for .NET 4.0?

Dec 4, 2011 at 10:05 AM

Is there any support for .NET 4.0? If so, how do I implement Xpedite with a .NET 4.0 project?

Dec 4, 2011 at 3:45 PM

Yes, Xpedite works with .NET 4.0 and ASP.NET MVC 3.

Add the 'Xpedite.Mvc.Html' namespace to the razor config element as follows:

    <pages pageBaseType="System.Web.Mvc.WebViewPage">
        <add namespace="Xpedite.Mvc.Html" />

You may then call the various Html Helper methods to render composite resources such as:

  @Html.CompositeScriptResource("shared", new [] {
  @Html.CompositeImageResource("actions", new [] {
        new Resource("add-enabled", Url.Content("~/Content/images/image1.png")),
        new Resource("add-disabled", Url.Content("~/Content/images/image2.png"))

Please see the documentation section for full MVC Html Helper API details.


Dec 6, 2011 at 8:29 PM

Nice! Thank you :)