Breaking change: HtmlHelper.Resolve<>() missing

Topics: Core
Developer
Jan 3, 2012 at 4:18 PM

The Resolve<>() extension method from HtmlHelper was removed in recent changesets. I don't know, what was the reason? It was a nice shortcut for HtmlHelper.ViewContext.RequestContext.GetWorkContext().Resolve<>().

Coordinator
Jan 3, 2012 at 4:43 PM

Can you point which changeset ? Also I would have actually used WorkContext.Resolve<> from within a view.

Developer
Jan 3, 2012 at 4:59 PM

It was in Orchard.Mvc.Html.ContainerExtensions (a funny class), removed here.

Actually I'm using this in an html helper, not in a view.