Reputation: 10213
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 I fix this?
Upvotes: 1
Views: 3875
Reputation: 1039438
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.
Upvotes: 4