发布无法签名msix

问题描述 投票:0回答:1

使用Visual Studio 2019将更新发布到现有的Windows应用商店应用程序。这在一周前有效。

我们的解决方案构建无误。当我创建安装程序包时,出现错误“无法签名'D:\ dev \ MeyerMusic \ MeyerTablet \ TabletDistribution \ bin \ AnyCPU \ Release \ MeyerMusicTabletSetup_2.6.6.0_AnyCPU.msix'。”

我们将使用现有应用程序名称将该应用程序作为Microsoft Store应用程序进行分发。

上周,我在同一台开发计算机上构建了2.6.5版本以及之前的许多软件包。

错误号为空白或丢失。我没有失败的理由。我仅在错误消息中看到一个事实,该事实指向文件中的第4574行:C:\ Program Files(x86)\ Microsoft Visual Studio \ 2019 \ Enterprise \ MSBuild \ Microsoft \ VisualStudio \ v16.0 \ AppxPackage \ Microsoft。 AppXPackage.Targets

该行是这样:

<SignAppxPackage Condition="'$(AppxPackageSigningEnabled)' == 'true'"
                 AppxPackageToSign="$(AppxMainPackageOutput)"
                 CertificateThumbprint="$(PackageCertificateThumbprint)"
                 CertificateFile="$(PackageCertificateKeyFile)"
                 CertificatePassword="$(PackageCertificatePassword)"
                 HashAlgorithmId="$(AppxHashAlgorithmId)"
                 EnableSigningChecks="$(EnableSigningChecks)"
                 SignAppxPackageExeFullPath="$(SignAppxPackageExeFullPath)"
                 TempCertificateFilePath="$(TempCertificateFilePath)"
                 VsTelemetrySession="$(VsTelemetrySession)"
                 SigningTimestampServerUrl="$(AppxPackageSigningTimestampServerUrl)"
                 SigningTimestampDigestAlgorithm="$(AppxPackageSigningTimestampDigestAlgorithm)"
                     />

故障排除步骤:

  1. 尝试构建侧面装载包。结果出现相同的错误
  2. 成功构建了未签名的侧面加载程序包
  3. 我已经重新启动了Visual Studio
  4. 我已重新启动计算机
  5. 我已删除整个解决方案的OBJ和BIN
  6. 我已经在事件日志中寻找错误,但到目前为止没有发现。
visual-studio-2019 windows-store msix
1个回答
0
投票

卸载KB4535996后,问题已解决。

我从以下帖子的提示中发现了这一点:https://developercommunity.visualstudio.com/content/problem/934967/uwp-error-failed-to-sign.html

© www.soinside.com 2019 - 2024. All rights reserved.