"Error while signing" 在 UWP 应用程序发布期间

"Error while signing" during UWP App Publsih

几天来,每当我尝试通过 "Publish" 构建我的 UWP 应用程序作为发布时,"Error while signing" 就会出现。不幸的是,没有显示更多信息。 我已经尝试使用新证书,完全重新安装 Visual Studio 包括 SDK,即使是新的空项目也会出现错误。

我在未签名的情况下构建项目时,没有出现任何错误。但是,由于 UWP 需要签名,因此没有选择。使用 signtool.exe 似乎没有任何效果(它没有签署 .msixbundle,也没有 return 任何错误)

用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

有人 have/had 遇到同样的问题并且有任何关于如何解决这个问题的信息吗?

问候

我前几天也遇到了同样的问题。将win10版本从18363.693还原到18363.657后,重新生成UWP并没有出现再次无法签名的问题。希望能解决您遇到的问题。