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:

  <system.web.webPages.razor>
    <pages pageBaseType="System.Web.Mvc.WebViewPage">
      <namespaces>
        <add namespace="Xpedite.Mvc.Html" />
      </namespaces>
    </pages>
  </system.web.webPages.razor>

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

  @Html.CompositeScriptResource("shared", new [] {
        Url.Content("~/Scripts/lib/modernizr.min.js"),
        Url.Content("~/Scripts/lib/jquery-1.7.1.js")
  })
  @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 :)