我最近在 visualstudio.com 上创建了项目,并在 azure 上启用了持续构建。我创建了 web api 项目,并创建了一些模型和 api 控制器。然后我在网上部署了它,它很酷很长一段时间。然后我通过 NuGet 更新了所有依赖项。构建在本地运行良好,并且应用程序也可以在我的本地计算机上运行。然后我签入到 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.
在我的本地机器构建上,我收到了 Tests 项目的警告
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...