我正在使用VS17开发用于远程设备的UWP应用程序。我突然收到这则讯息
Error The "WireUpCoreRuntime" task failed unexpectedly.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at Microsoft.Build.Net.CoreRuntimeTask.WireUpCoreRuntime.InternalExecute()
at Microsoft.Build.Net.CoreRuntimeTask.WireUpCoreRuntime.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() DataManagementApp
我被这个错误困扰了大约一周。我不知道是什么原因造成的。我做的最后一件事是将GPIO例程移至外部库。之后,每个构建都以该消息结束。
我试过的
根本没有成功。如果有人能帮助我解决这个问题,我将非常高兴。
我搞砸了appxmanifest文件。我使用AppServices进行后台工作。在此示例中,他们在appxmanifest文件中进行了一些更改,但突然引发错误。
<Application Id="AppServicesProvider.App"
Executable="$targetnametoken$.exe"
EntryPoint="AppServicesProvider.App">
必须简化成
<Application Id="App">
而且它不再抛出任何错误。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句