7

Just started a new MVC 3 project and I can't get the strongly-type generic action link and url helpers I am used to in MVC 2 futures.

Which nuget packages and namespaces do I need to get hold off?

Example

Html.ActionLink<HomeController>(c => c.Index(), "Home")

ANSWER:

Just needed to reference Microsoft.Web.Mvc via NuGet MvcContrib - and make the namespace available in the views.

tereško
  • 58,060
  • 25
  • 98
  • 150
nick
  • 1,477
  • 2
  • 20
  • 29
  • 1
    you will need to provide us with a bit more info. Whats not working? – LiamB May 17 '11 at 09:20
  • 1
    Do you have some examples of what you were using from the futures project? – Adam Flanagan May 17 '11 at 09:47
  • Example of strongly-typed generic action link now added for those who don't know what they look like. – nick May 17 '11 at 15:27
  • @nick check this link (https://stackoverflow.com/questions/9584673/html-actionlink-and-html-displayfor-at-the-same-time-not-right-but-it-descri) – antonio Jan 05 '21 at 02:16

3 Answers3

5

Which nuget packages and namespaces do I need to get hold off?

  • Official NuGet Mvc3Futures package is here
  • Namespace to declare is Microsoft.Web.Mvc
nulltoken
  • 64,429
  • 20
  • 138
  • 130
3

Grab the T4MVC package in NuGet.

Jan Jongboom
  • 26,598
  • 9
  • 83
  • 120
  • Don't think these are the ones I mean't. I've posted an example of one from the futures package I was referring to. – nick May 17 '11 at 15:39
1

Just need to reference Microsoft.Web.Mvc

nick
  • 1,477
  • 2
  • 20
  • 29