【发布时间】:2014-07-27 14:53:26
【问题描述】:
我有一个网站项目,我正在尝试通过 TeamCity 和 WebDeploy 进行部署。
因为这是一个网站而不是一个 Web 应用程序,所以我没有 .vbproj 或 .csproj 文件。
我从this 在这里的帖子中得出结论,我需要创建一个 .publishproj 文件,因为 MSbuild 将其用作构建文件。
但是,当 TeamCity 调用 MSBuild 时,它会因以下错误而退出:-
Failed to start MSBuild.exe. Failed to detect default target(s) in the project file C:\TeamCity\buildAgent\work\d9dda73c7948f14a\MainSite\website.publishproj. Please define targets explicitly in the build configuration options on TeamCity Web UI. Project does not define DefaultTargets or InitialTargets.
我查看了 .publishproj 文件,没有定义目标。
我还关注了 Troy Hunt 的 You're deploying it wrong 关于 Web 应用程序的文章,效果很好。
谁能建议我如何从 Team City 网络部署网站(不是网络应用程序)?
【问题讨论】:
标签: web-applications msbuild web teamcity webdeploy