相关疑难解决方法(0)

Azure自动构建失败

我最近在visualstudio.com上创建了项目,并在azure上启用了连续构建.我创建了web api项目,并创建了一些模型和api控制器.然后我在网上进行了部署,很长一段时间都很酷.然后我通过NuGet更新了所有依赖项.Build在本地运行良好,也在我的本地机器上运行app.然后我检查了tfs,自动部署踢了,生成错误.它说:

C:\a\src\HitchStopApi\packages\Microsoft.Bcl.Build.1.0.6\tools\Microsoft.Bcl.Build.targets (74): The "EnsureBindingRedirects" task could not be loaded from the assembly C:\a\src\HitchStopApi\packages\Microsoft.Bcl.Build.1.0.6\tools\Microsoft.Bcl.Build.Tasks.dll. Could not load file or assembly 'file:///C:\a\src\HitchStopApi\packages\Microsoft.Bcl.Build.1.0.6\tools\Microsoft.Bcl.Build.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> 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:\Programming\Projects\HitchStop\HitchStopApi\packages\Microsoft.Bcl.Build.1.0.6\tools\Microsoft.Bcl.Build.targets(220,5): warning : Project must install nuget package Microsoft.Bcl.

在本地我使用.NET 4.5,MVC4,实体框架5.0 ...

c# tfs build azure asp.net-web-api

7
推荐指数
1
解决办法
5567
查看次数

标签 统计

asp.net-web-api ×1

azure ×1

build ×1

c# ×1

tfs ×1