Visual Studio团队服务(Visual Studio是否联机)生成无法部署Azure云服务

Visual Studio团队服务(Visual Studio是否联机)生成无法部署Azure云服务,azure,azure-devops,azure-cloud-services,azure-pipelines,azure-pipelines-build-task,Azure,Azure Devops,Azure Cloud Services,Azure Pipelines,Azure Pipelines Build Task,我有一个在本地计算机上成功构建和发布的解决方案。我已经在TeamServices上创建了一个构建定义(使用新的框架,而不是XAML构建),它模仿我的本地步骤,然后运行Azure部署构建步骤。Azure部署生成步骤在以下命令上始终失败: Set-AzureDeployment -Upgrade -ServiceName website -Package C:\a\1\s\WebsiteSolution\Azure\bin\Production\ServiceDefinition.csdef -Co

我有一个在本地计算机上成功构建和发布的解决方案。我已经在TeamServices上创建了一个构建定义(使用新的框架,而不是XAML构建),它模仿我的本地步骤,然后运行Azure部署构建步骤。Azure部署生成步骤在以下命令上始终失败:

Set-AzureDeployment -Upgrade -ServiceName website -Package C:\a\1\s\WebsiteSolution\Azure\bin\Production\ServiceDefinition.csdef -Configuration C:\a\1\s\WebsiteSolution\Azure\bin\Production\ServiceConfiguration.cscfg -Slot Production -Label 20160801.4 -ExtensionConfiguration <extensions>

是否有人知道发生了什么问题,或者如何诊断生成的包的问题,从而使其无效?

Azure云服务部署任务需要CsPkg包文件。但根据错误日志,您正在为“CsPkg”选项指定csdef文件。更新生成定义以正确设置“CsPkg”路径,然后再次对生成进行排队。

Microsoft.WindowsAzure.Commands.Common.ComputeCloudException: BadRequest : Package conversion failed. Detailed error information: FileFormatException. ---> Hyak.Common.CloudException: BadRequest : Package conversion failed. Detailed error information: FileFormatException. at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task) at Microsoft.WindowsAzure.Management.Compute.DeploymentOperationsExtensions.UpgradeBySlot(IDeploymentOperations operations, String serviceName, DeploymentSlot deploymentSlot, DeploymentUpgradeParameters parameters) at Microsoft.WindowsAzure.Commands.Utilities.Common.ServiceManagementBaseCmdlet.ExecuteClientActionNewSM[TResult](Object input, String operationDescription, Func`1 action, Func`3 contextFactory) --- End of inner exception stack trace --- at Microsoft.WindowsAzure.Commands.Utilities.Common.ServiceManagementBaseCmdlet.ExecuteClientActionNewSM[TResult](Object input, String operationDescription, Func`1 action, Func`3 contextFactory)