asp.net-mvc - 尝试使用 TeamCity 构建 ASP.NET MVC Web 应用程序时出错

标签 asp.net-mvc msbuild teamcity

我正在开发一个 Asp.Net MVC Web 应用程序。我在我的开发工作站上安装了 TeamCity,并且一直在其上运行 CI 构建。一切都运转良好。我想将 TeamCity 从我的计算机上移至刚刚交付的新开发/构建服务器上。我不想将 Visual Studio 安装到生成服务器上。但似乎 msbuild 无法构建 Web 应用程序项目。

E:\TeamCity\buildAgent\work\48e528785fe346fa\src\Web\Web.csproj(489, 11): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

我在谷歌上发现了一些点击,但没有什么可以接受的。建议安装 Visual Studio,或将某些目录从 Visual Studio 复制到服务器等。

如何才能使 TeamCity 在开发/构建服务器上构建我的项目。

最佳答案

看起来像是将文件复制到 will definitely work 。你尝试过吗?将 .targets 文件视为 MSBuild 将如何完成其​​工作的一系列定义。

关于asp.net-mvc - 尝试使用 TeamCity 构建 ASP.NET MVC Web 应用程序时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/811417/

相关文章:

msbuild - 使用MSBuild,Team Build和TFS中的PFX文件签名程序集

powershell - TeamCity - 用 powershell 迭代 vcs 根

powershell - 将带有可变部分的消息从 PowerShell 输出到 TeamCity 构建日志

asp.net - MVC DropDownListFor - NullReferenceException 未被用户代码处理

c# - Entity Framework 和 MVC 模型

c# - 更新现有行 mysql linq

asp.net-mvc - WebGrid中具有模型IEnumerable <T>和T.boolValue的CheckBoxFor

.net - MSBuild 在指定绝对路径时复制依赖项,在相对路径时忽略

msbuild - 构建错误 + 为 excel 2010 创建 VSTO 插件

linux - 应该为 Docker 中的 TeamCity 代理提供什么服务器 URL?