0

我已经对 T4MVC 产生了不健康的依赖,因为它是一个非常棒的库,我已经在 c# 中使用它多年并且从来没有遇到过太大的问题

我正在 VB 中开发一个新的 MVC 4 项目,它似乎破坏了我的很多代码,知道如何解决这个问题我已经尝试在设置中更改 MVC 链接生成类的名称,但它似乎仍然在刹车我的很多代码似乎主要在附带的帐户控制器和一些微软命名空间上,任何人都成功地让它在 VB 中工作

Error   6   Type 'ContactsManager.Web.Mvc.LoginModel' is not defined.   C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb    148 56  ContactsManager.Web.Mvc

Error   7   Type 'ContactsManager.Web.Mvc.RegisterModel' is not defined.    C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb    165 59  ContactsManager.Web.Mvc

Error   8   Type 'ContactsManager.Web.Mvc.AccountController.ManageMessageId' is not defined.    C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb    178 59  ContactsManager.Web.Mvc

Error   9   Type 'ContactsManager.Web.Mvc.LocalPasswordModel' is not defined.   C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb    184 57  ContactsManager.Web.Mvc

Error   10  Type 'ContactsManager.Web.Mvc.RegisterExternalLoginModel' is not defined.   C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\AccountController.generated.vb    203 76  ContactsManager.Web.Mvc

Error   12  Type 'ContactsManager.Web.Mvc.ContactCreate' is not defined.    C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   260 53  ContactsManager.Web.Mvc

Error   13  Type 'ContactsManager.Lib.Models.Web.Address' is not defined.   C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   295 78  ContactsManager.Web.Mvc

Error   14  Type 'ContactsManager.Lib.Models.Web.Address' is not defined.   C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   309 104 ContactsManager.Web.Mvc

Error   15  Type 'ContactsManager.Lib.Models.Web.Email' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   330 76  ContactsManager.Web.Mvc

Error   16  Type 'ContactsManager.Lib.Models.Web.Email' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   344 102 ContactsManager.Web.Mvc

Error   17  Type 'ContactsManager.Lib.Models.Web.SocialNetwork' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   365 84  ContactsManager.Web.Mvc

Error   18  Type 'ContactsManager.Lib.Models.Web.SocialNetwork' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   379 110 ContactsManager.Web.Mvc

Error   19  Type 'ContactsManager.Lib.Models.Web.Phone' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   400 76  ContactsManager.Web.Mvc

Error   20  Type 'ContactsManager.Lib.Models.Web.Phone' is not defined. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   414 102 ContactsManager.Web.Mvc

Error   21  Type 'ContactsManager.Lib.Models.Web.Url' is not defined.   C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   435 78  ContactsManager.Web.Mvc

Error   22  Type 'ContactsManager.Lib.Models.Web.Url' is not defined.   C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\ContactsController.generated.vb   449 104 ContactsManager.Web.Mvc

Error   27  Identifier expected.    C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\SharedController.generated.vb 38  30  ContactsManager.Web.Mvc

Error   32  Unable to load referenced library 'C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Mono.Math.dll': The system cannot find the file specified. 

Error   33  Unable to load referenced library 'C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Mono.Math.dll': The system cannot find the file specified. C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Mono.Math.dll 

Error   34  Unable to load referenced library 'C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Org.Mentalis.Security.Cryptography.dll': The system cannot find the file specified.    

Error   35  Unable to load referenced library 'C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Org.Mentalis.Security.Cryptography.dll': The system cannot find the file specified.    C:\Users\Chris McGrath\Documents\Visual Studio 2012\Projects\LinqToNextbus\VBATeamAsignment2013\Assignment2-branch-natesh\ContactsManager.Web.Mvc\Bin\Org.Mentalis.Security.Cryptography.dll    
4

1 回答 1

0

请注意,VB 版本没有与 C# 版本保持同步,因此它基于更旧的 T4MVC 版本。据我所知,它当时有效,但我自己没有使用过。

理想情况下,我们需要有人来维护它,但对 VB 的需求一直有限。

于 2013-04-13T18:18:08.287 回答