2016-08-01 293 views
1

我有一個解決方案可以在本地計算機上成功構建和發佈。我在Team Services上創建了一個構建定義(使用新的框架 - 而不是XAML構建),這些構建模仿我的本地步驟,然後運行Azure部署構建步驟。 Azure的部署建立步驟始終未能上輸入以下命令:Visual Studio團隊服務(Visual Studio Online)構建失敗部署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> 

,出現以下錯誤:

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) 

有誰知道什麼錯誤或如何與生成的包來診斷問題使它無效?

回答

1

Azure雲服務部署任務需要一個CsPkg包文件。但根據您的錯誤日誌,您正在爲「CsPkg」選項指定一個csdef文件。更新您的構建定義以正確設置「CsPkg」路徑,然後再次對構建進行排隊。 enter image description here

相關問題