几天以来,每当我尝试通过“发布”将UWP应用构建为发行版时,都会出现“签名时出错”。不幸的是,没有显示更多信息。我已经尝试过使用新证书,包括SDK在内的Visual Studio的完全重新安装,甚至使用新的空项目也将发生错误。
当我不签名就构建项目时,不会发生错误。但是,由于签名对于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
有人有/曾经有同样的问题,并且有任何有关解决此问题的信息吗?
问候
前几天我也遇到了同样的问题。将win10版本从18363.693还原到18363.657之后,重新生成UWP不会导致无法再次签名的问题。希望能解决您遇到的问题。