azure service fabric vsts release (deployment) 错误 Application type of application '' doesn't match the application type

azure service fabric vsts release (deployment) error Application type of application '' doesn't match the application type

出现此错误:

应用程序“”的应用程序类型与新应用程序包的应用程序清单中的应用程序类型不匹配。请确保正在升级的应用程序具有相同的应用程序类型。

我的应用程序很小,只包含 2 个服务。如果我从 Visual Studio 2017 手动部署它工作正常。但是,当我从 VSTS 中的成功构建进行部署时,出现了上述错误。我在手动和 vsts 版本中使用了相同的发布配置文件。

有什么想法吗?

来自日志的其他详细信息:

2017-06-06T16:00:59.2449160Z ##[debug]INPUT_OVERRIDEPUBLISHPROFILESETTINGS: 'false'
2017-06-06T16:01:00.9096138Z ##[debug]Join-Path "C:\Program Files\Microsoft Service Fabric\bin\fabric\fabric.code" "ServiceFabricServiceModel.xsd"
2017-06-06T16:01:00.9146136Z ##[debug]C:\Program Files\Microsoft Service Fabric\bin\fabric\fabric.code\ServiceFabricServiceModel.xsd
2017-06-06T16:01:00.9156210Z ##[debug]Length: 94
2017-06-06T16:01:00.9166135Z ##[debug]
2017-06-06T16:01:00.9186137Z ##[debug]Test-Path "C:\Program Files\Microsoft Service Fabric\bin\fabric\fabric.code\ServiceFabricServiceModel.xsd"
2017-06-06T16:01:00.9216373Z ##[debug]True
2017-06-06T16:01:00.9226141Z ##[debug]
2017-06-06T16:01:03.5668693Z ##[debug]Leaving D:\a\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64.3.9\deploy.ps1.
2017-06-06T16:01:03.5767636Z ##[debug]Caught exception from task script.
2017-06-06T16:01:03.5787644Z ##[debug]Error record:
2017-06-06T16:01:03.6307491Z ##[debug]Application type of application '' doesn't match the application type in the application manifest of the new application package. Please ensure that the application being upgraded has the same application type.
2017-06-06T16:01:03.6317836Z ##[debug]At D:\a\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64.3.9\ServiceFabricSDK\Publish-UpgradedServiceFabricApplication.ps1:195 char:17
2017-06-06T16:01:03.6329753Z ##[debug]+                 throw $errMsg
2017-06-06T16:01:03.6338786Z ##[debug]+                 ~~~~~~~~~~~~~
2017-06-06T16:01:03.6350377Z ##[debug]    + CategoryInfo          : OperationStopped: (Application typ...plication type.:String) [], RuntimeException
2017-06-06T16:01:03.6360412Z ##[debug]    + FullyQualifiedErrorId : Application type of application '' doesn't match the application type in the application     manifest of the new application package. Please ensure that the application being upgraded has the same applicati    on type.
2017-06-06T16:01:03.6370408Z ##[debug] 
2017-06-06T16:01:03.6380417Z ##[debug]Script stack trace:
2017-06-06T16:01:03.6410418Z ##[debug]at Publish-UpgradedServiceFabricApplication, D:\a\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64.3.9\ServiceFabricSDK\Publish-UpgradedServiceFabricApplication.ps1: line 195
2017-06-06T16:01:03.6420417Z ##[debug]at <ScriptBlock>, D:\a\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64.3.9\deploy.ps1: line 144
2017-06-06T16:01:03.6430417Z ##[debug]at <ScriptBlock>, <No file>: line 1
2017-06-06T16:01:03.6440419Z ##[debug]at <ScriptBlock>, <No file>: line 22
2017-06-06T16:01:03.6450418Z ##[debug]at <ScriptBlock>, <No file>: line 18
2017-06-06T16:01:03.6460418Z ##[debug]at <ScriptBlock>, <No file>: line 1
2017-06-06T16:01:03.6480463Z ##[debug]Exception:
2017-06-06T16:01:03.6529321Z ##[debug]System.Management.Automation.RuntimeException: Application type of application '' doesn't match the application type in the application manifest of the new application package. Please ensure that the application being upgraded has the same application type.
2017-06-06T16:01:03.6825375Z ##[error]Application type of application '' doesn't match the application type in the application manifest of the new application package. Please ensure that the application being upgraded has the same application type.
2017-06-06T16:01:03.6825375Z ##[debug]Processed: ##vso[task.logissue type=error]Application type of application '' doesn't match the application type in the application manifest of the new application package. Please ensure that the application being upgraded has the same application type.
2017-06-06T16:01:03.6845374Z ##[debug]Processed: ##vso[task.complete result=Failed]
2017-06-06T16:01:03.7105387Z ##[section]Finishing: Deploy Service Fabric Application
2017-06-06T16:01:03.7155386Z ##[debug]Cleaning agent temp folder: d:\a\_temp
2017-06-06T16:01:03.7155386Z ##[section]Finishing: Release

我找到了根本原因,这太愚蠢了。很容易错过这一点,因为除非将鼠标拖到最后,否则您无法在 vsts 中看到整个文本框值。参数也指向错误的发布配置文件,我更正了。