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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top