小编Min*_*nos的帖子

VSTS版本上的Service Fabric服务版本升级部署失败

摘要

日志中出现以下错误.

The content in ConfigPackage Name:Config and Version:1.0.0.20180315.2 in Service Manifest 'TwoServicePkg' has changed, but the version number is the same.
Run Code Online (Sandbox Code Playgroud)

我只更改了其中一个服务的代码,所以我只更改了清单中的一个版本的代码.

在这种情况下,通过Visual Studio进行升级没有问题.

但是,通过VSTS升级将导致上述错误.

细节

我默认为Service Fabric创建了VSTS CI/CD.(管道:VSTS Git Repo - >构建 - >发布)

首先'提交>构建>发布'是好的.

服务结构清单版本

MyAppType: 1.0.0
  OneService: Pkg 1.0.0 / Code 1.0.0 / Config 1.0.0
  TwoService: Pkg 1.0.0 / Code 1.0.0 / Config 1.0.0
Run Code Online (Sandbox Code Playgroud)

现在,我只修复OneService代码.并编辑服务结构清单的验证.

服务结构清单版本

MyAppType: 1.0.1(*)
  OneService: Pkg 1.0.1(*) / Code 1.0.1(*) / Config 1.0.0
  TwoService: Pkg 1.0.0 / Code 1.0.0 / Config 1.0.0 …
Run Code Online (Sandbox Code Playgroud)

azure azure-service-fabric azure-devops azure-pipelines-release-pipeline

6
推荐指数
1
解决办法
1842
查看次数