我的构建服务器上有一个奇怪的问题.我在Windows Server 2008 R2上使用最新版本的TeamCity.我使用Web平台安装程序在构建服务器上安装ASP.NET MVC但是,我的编译仍然无法使用无法找到的消息System.Web.Mvc.dll.我已经验证它位于预期位置的磁盘上:
(C:\ Program Files(x86)\ Microsoft ASP.NET\ASP.NET MVC 3\Assemblies)
以下是一些消息:
Controllers\AccountController.cs(7, 18): error CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Controllers\AccountController.cs(15, 35): error CS0246: The type or namespace name 'Controller' could not be found (are you missing a using directive or an assembly reference?)
Controllers\HomeController.cs(5, 18): error CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are …Run Code Online (Sandbox Code Playgroud)