尝试构建时出现编译错误:
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 计算机复制目标文件
关于c# - teamcity 无法构建,因为它缺少 Microsoft.WebDeployment.targets,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9000866/