几天来,每当我尝试通过“发布”将我的 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
有人有/遇到过同样的问题,并且有任何关于如何解决这个问题的信息吗?
问候