Visual Studio 团队服务(Visual Studio 在线)构建无法部署 Azure 云服务
Visual Studio Team Services (was Visual Studio Online) build fails to Deploy Azure Cloud Service
我有一个解决方案可以在我的本地机器上成功构建和发布。我已经在 Team Services 上创建了一个构建定义(使用新框架 - 而不是 XAML 构建)来模拟我的本地步骤,然后运行 Azure 部署构建步骤。 Azure 部署构建步骤在执行以下命令时始终失败:
Set-AzureDeployment -Upgrade -ServiceName website -Package C:\a\s\WebsiteSolution\Azure\bin\Production\ServiceDefinition.csdef -Configuration C:\a\s\WebsiteSolution\Azure\bin\Production\ServiceConfiguration.cscfg -Slot Production -Label 20160801.4 -ExtensionConfiguration <extensions>
出现以下错误:
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)
有谁知道出了什么问题或如何诊断生成的包导致其无效的问题?
Azure 云服务部署任务需要 CsPkg 包文件。但是根据您的错误日志,您正在为 "CsPkg" 选项指定一个 csdef 文件。更新您的构建定义以正确设置 "CsPkg" 路径,然后再次对构建进行排队。
我有一个解决方案可以在我的本地机器上成功构建和发布。我已经在 Team Services 上创建了一个构建定义(使用新框架 - 而不是 XAML 构建)来模拟我的本地步骤,然后运行 Azure 部署构建步骤。 Azure 部署构建步骤在执行以下命令时始终失败:
Set-AzureDeployment -Upgrade -ServiceName website -Package C:\a\s\WebsiteSolution\Azure\bin\Production\ServiceDefinition.csdef -Configuration C:\a\s\WebsiteSolution\Azure\bin\Production\ServiceConfiguration.cscfg -Slot Production -Label 20160801.4 -ExtensionConfiguration <extensions>
出现以下错误:
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)
有谁知道出了什么问题或如何诊断生成的包导致其无效的问题?
Azure 云服务部署任务需要 CsPkg 包文件。但是根据您的错误日志,您正在为 "CsPkg" 选项指定一个 csdef 文件。更新您的构建定义以正确设置 "CsPkg" 路径,然后再次对构建进行排队。