c# - teamcity 无法构建,因为它缺少 Microsoft.WebDeployment.targets

标签 c# asp.net teamcity

尝试构建时出现编译错误:

d:\Co\RnD\Server\WebSites\Writers\Dev-Accounts-3.10\Accounts\BrandToolbar.Account\BrandToolbar.Account.csproj(3682, 5): error MSB4062: The "BrandToolbar.Web.Compression.MSBuild.CodeFilesTask" task could not be loaded from the assembly BrandToolbar.Web.Compression.MSBuild, Version=1.1.0.0, Culture=neutral, PublicKeyToken=1570d3d1a3231508. Could not load file or assembly 'BrandToolbar.Web.Compression.MSBuild, Version=1.1.0.0, Culture=neutral, PublicKeyToken=1570d3d1a3231508' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

d:\Co\RnD\Server\WebSites\Writers\Dev-Accounts-3.10\Deployment\Account\Account.wdproj(73, 3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WebDeployment\v10.0\Microsoft.WebDeployment.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

但是我找不到下载和安装的地方 Microsoft.WebDeployment.targets

最佳答案

看看这篇关于使用 teamcity 设置它的文章, Web Deployment Project & TeamCity

您可以在此处下载 MS Web 部署内容,但从文章中看来您需要从 VS 计算机复制目标文件

http://www.microsoft.com/download/en/details.aspx?id=24509

关于c# - teamcity 无法构建,因为它缺少 Microsoft.WebDeployment.targets,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9000866/

相关文章:

c# - 在另一个任务中启动任务会重复我的 WebRequest

c# - 从架构上讲,我应该如何用更易于管理的东西替换一个非常大的 switch 语句?

c# - 搜索中的单词如何像在 Google 中一样附加

c# - 如何使用 PayPal for web application 只是为了付款,而不是像购买订单一样

c# - 如何使用mshtml在textarea中输入文本

c# - 我们可以将列表框作为 Gridview 中的字段,并且还可以在 Gridview 中设置可编辑字段吗?

c# - 如何查看从 IEnumerable 返回的对象?

teamcity - 如何从 nuspec 中提取版本号到 TeamCity?

java - 当使用 Windows 系统帐户构建应用程序时,Android 构建失败 (aapt2)

kotlin - 如何在 TeamCity 的 Kotlin DSL 中引用全局表达式?