Where is my common actionlink?

Moved from preview 2 to preview 5, and now my Html.ActionLink calls are not working. It appears that the generic version has been replaced with a safe version other than type.

// used to work <li> <%= Html.ActionLink<HomeController>(c => c.Index(), "Home")%> </li> // what appears I can only do now <li> <%= Html.ActionLink<HomeController>("Index", "Home")%> </li> 

Why did Gu do this? Was it ported to Microsoft.Web.Mvc or somewhere else as a "future"? Is there a general replacement? Halp!

+4
source share
1 answer

Do not blame GU, it is my fault. This method has been ported to MvcFutures. Here 's a blog entry that provides the basis for why this change was made .

+7
source

Source: https://habr.com/ru/post/1276960/


All Articles