在并行安装 Visual Studio 2022 RC 后,我现在在安装前运行良好的项目中收到以下错误。XAML 页面和代码隐藏中的命名空间似乎匹配。我已确保已安装目标 Windows SDK。关于我还应该检查什么的任何建议?这是一个 UWP 项目。谢谢。
Windows.UI.Xaml.UnhandledExceptionEventArgs}
Exception: {"Method not found: 'Boolean System.Threading.CancellationTokenRegistration.TryDeregister()'."}
Handled: false
Message: "System.MissingMethodException: Method not found: 'Boolean System.Threading.CancellationTokenRegistration.TryDeregister()'.\r\n at System.Threading.Tasks.AsyncInfoToTaskBridge`2.Complete(IAsyncInfo asyncInfo, Func`2 getResultsFunction, AsyncStatus asyncStatus)\r\n at System.Threading.Tasks.AsyncInfoToTaskBridge`2.CompleteFromAsyncOperation(IAsyncOperation`1 asyncInfo, AsyncStatus asyncStatus)"
Native View: 0x170119f0 <Information not available, no symbols loaded for Windows.UI.Xaml.dll>
此外,现在当我尝试使用 Windows Template Studio 创建一个新项目时,我得到一个“对象引用未设置为对象错误的实例,其中包含以下详细信息:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Templates.Core.Gen.GenController.ValidateUserSelection(UserSelection userSelection, Boolean isNewProject)
at Microsoft.Templates.Core.Gen.NewProjectGenController.<UnsafeGenerateProjectAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.UI.Services.GenerationService.<GenerateProjectAsync>d__5.MoveNext()
我想这些问题一定是相关的。