开发者

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

开发者 https://www.devze.com 2023-03-18 02:47 出处:网络
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 \'Syste

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

精彩评论

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