Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
AzureContinuousDeployment.11.xaml-打包失败_Azure_Build_Tfs - Fatal编程技术网

AzureContinuousDeployment.11.xaml-打包失败

AzureContinuousDeployment.11.xaml-打包失败,azure,build,tfs,Azure,Build,Tfs,我试图使用AzureContinuousDeployment.11.xaml模板作为起点来建立一个构建。我的场景非常简单,一个web角色,一个单元测试项目,以及在部署后运行的第二个测试项目,以使用specflow验证规范 我在周日晚上把所有这些都做得很好,唯一的变化是同事签入了代码——他签入的代码只是构建的,也就是说,它对构建过程没有贡献 我在运行MSBuild时遇到问题。失败之前执行的最后一个操作似乎是针对web角色: 为默认目标构建了$/数据服务层/Audit/Main/Source/Cod

我试图使用AzureContinuousDeployment.11.xaml模板作为起点来建立一个构建。我的场景非常简单,一个web角色,一个单元测试项目,以及在部署后运行的第二个测试项目,以使用specflow验证规范

我在周日晚上把所有这些都做得很好,唯一的变化是同事签入了代码——他签入的代码只是构建的,也就是说,它对构建过程没有贡献

我在运行MSBuild时遇到问题。失败之前执行的最后一个操作似乎是针对web角色:

为默认目标构建了$/数据服务层/Audit/Main/Source/Code/Audit/Audit.csproj

这运行了26秒,然后继续进行下一步,我只能假设Azure模板打包和部署服务的方式,因为除了在我的项目中使用包之外,我没有使用NuGet:

为targets\u DownloadNuGet构建了$/Data Services Layer/Audit/Main/Source/.nuget/nuget.targets

这将导致在我的构建中发生以下错误:

C:\a\src\Source.nuget\nuget.targets 97:找不到“C:\a\src\Source\Code\Audit\bin\Audit.dll”。确保项目已经完成。 C:\a\src\Source.nuget\nuget.targets 97:命令C:\a\src\Source.nuget\nuget.exe包C:\a\src\Source\Codh:e\Audit\Audit.csproj-Properties Configuration=Debug;Platform=AnyCPU-NonInteractive-OutputDirectory C:\a\bin-symbols以代码1退出

这实际上是这个问题第二次出现——在第一次出现问题后,我通过将我的所有NuGet软件包上传到源代码中,而不是使用NuGet restore,并从头开始重新创建云服务和相关部署配置等,使它再次工作。我不知道是哪一部分解决了这个问题,但它又开始构建了

有人对这个有什么想法吗

尽管日志设置为诊断设置,但除了上面的错误之外,我没有得到任何东西,我有点困惑。尤其令人恼火的是,这种情况已经发生了两次,所以我想知道到底是什么原因导致了这种情况,因为我不喜欢事情发生时突然停止工作——这让我感到紧张

无论如何,任何帮助都将非常感激,以阻止我可怜的头再受伤

谢谢


Andy

有点延迟响应,但万一有人有类似问题,这就是我设置的NuGet软件包还原的问题。当我跳过了恢复到在源代码中存储所有NuGet DLL所需的步骤后,我的问题就消失了。