使用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)"
/>
故障排除步骤:
卸载KB4535996后,问题已解决。
我从以下帖子的提示中发现了这一点:https://developercommunity.visualstudio.com/content/problem/934967/uwp-error-failed-to-sign.html