Frage

I've read around on this issue but I'm unclear if it's possible to get T4MVC working with VB.NET. I'm using T4MVC and ASP.NET MVC4.

I downloaded and installed T4MVCVB from this link and I've already installed the T4MVC package. I've renamed my helper from MVC to MVCH

My current problem is that when I try to use it within a View:

@Html.ActionLink("Home", MVCH.Home.Index)

I get this:

Error

If I try to use it from a controller, such as:

Return View(MVCH.Home.Index)

It works no problem.

Has anyone been able to get T4MVC working with VB.NET?

War es hilfreich?

Lösung

T4MVCVB has not really been kept up to date with T4MVC, though I think it should still work. But note that when using it, you should not also import the T4MVC NuGet package. Instead, just use T4MVCVB by itself. I suspect that's why you're getting conflicts.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top