开发者

I keep getting "The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)"

I am running a build via TFS 2010 for my MVC3 project, but it fails with the message;

Controllers\AccountController.cs (5): The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

How do 开发者_JAVA百科I fix this?


You should install ASP.NET MVC 3 on your TFS build server. Otherwise it won't be able to compile your ASP.NET MVC 3 projects. Once you install it the System.Web.Mvc assembly will be deployed in the GAC and TFS will be able to compile the application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜