【发布时间】:2020-06-19 15:44:00
【问题描述】:
几天以来,每当我尝试通过“发布”将我的 UWP 应用程序构建为发行版时,都会出现“签名时出错”。不幸的是,没有显示更多信息。 我已经尝试过使用新证书,完全重新安装 Visual Studio,包括 SDK,即使是新的空项目,也会发生错误。
当我在没有签名的情况下构建项目时,不会发生错误。但是,由于 UWP 需要签名,所以这是没有选择的。使用 signtool.exe 似乎没有任何效果(它不会对 .msixbundle 进行签名,也不会返回任何错误)
用Visual Studio构建后,在事件查看器中发现如下日志,但不确定是否与此错误有关:
AppInsightsEvent Name = vs/telemetry/internalfault
Description = Exception in SessionChannel.EventProcessorChannel ProcessEvents Channel = eventProcessorChannel
TelemetrySession = '0bd4d105-ba92-44c0-bcba-1e4c4d4d5789' Started = True OptIn=True IsInitialized = True Cloned = False
WatsonEventType = VisualStudioNonFatalErrors2
UTC time = 2020-03-06T18:08:54
Exception:
System.IO.FileNotFoundException
The file or assembly "Microsoft.Diagnostics.Tracing.EventSource, Version=1.1.28.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" or a dependecy of it was not found.
Microsoft.VisualStudio.ApplicationInsights.Channel.UniversalTelemetryChannel.IsAvailable()
Microsoft.VisualStudio.Telemetry.SessionChannel.AsimovAppInsightsClientWrapper.CreateAppInsightsChannel(TelemetryConfiguration config)
Microsoft.VisualStudio.Telemetry.SessionChannel.BaseAppInsightsClientWrapper.Initialize(String sessionId, String userId)
Microsoft.VisualStudio.Telemetry.SessionChannel.BaseAppInsightsSessionChannel.Start(String sessionId)
Microsoft.VisualStudio.Telemetry.EventProcessorRouter.RouteEvent(TelemetryEvent telemetryEvent, String sessionId, Boolean isDropped)
Microsoft.VisualStudio.Telemetry.EventProcessor.ProcessEvent(TelemetryEvent telemetryEvent)
Microsoft.VisualStudio.Telemetry.SessionChannel.EventProcessorChannel.ProcessEvents()
WerReportAddDump PID=3108 MSBuild WerDumpTypeMiniDump
是否有人遇到过同样的问题,并且有任何关于如何解决此问题的信息?
问候
【问题讨论】:
-
当您在解决方案资源管理器中右键单击我们的应用程序,然后单击“商店”,然后单击“将您的应用程序与商店关联”,然后单击“下一步”几次,你看到了吗您的应用程序已经与商店关联?如果没有,则您没有签署“发布”到商店所需的证书。
-
这适用吗? Update breaks Signtool?
-
@PeterTorr-MSFT 再想想,那天晚上我确实运行了更新。我稍后会尝试卸载它..
-
@GregThatcher 我的应用被侧载,商店没有被使用。
-
@PeterTorr-MSFT 很有可能这是错误。但是我无法卸载更新。我试图通过系统控制和 cmd 卸载它。使用
wusa /uninstall /kb:4535996时出现错误代码0x80070490:找不到元素。所以我下载了 .msu 并尝试了wusa /uninstall <pathToMSU>。这开始很好,但仍然以同样的错误结束。有什么建议吗?
标签: uwp visual-studio-2019 signing msix