我对Visual Studio 2019 Community进行了更新,现在的版本是16.10.2。但现在我无法打开我的解决方案了。已有的项目无法加载,日志显示如下:
18-6-2021 08:58:43 可恢复的 System.MissingMethodException: 方法未找到:'System.Collections.Generic.LinkedListNode1<!0> System.Collections.Generic.LinkedList
1.gdt_Last()'.
在Microsoft.Build.Evaluation.ProjectRootElementCache.BoostEntryInStrongCache(ProjectRootElement projectRootElement)
在Microsoft.Build.Evaluation.ProjectRootElementCache.RenameEntryInternal(String oldFullPathIfAny, ProjectRootElement projectRootElement)
在Microsoft.Build.Evaluation.ProjectRootElementCache.AddEntry(ProjectRootElement projectRootElement)
在Microsoft.Build.Construction.ProjectRootElement..ctor(String path, ProjectRootElementCacheBase projectRootElementCache, Boolean preserveFormatting)
在Microsoft.Build.Construction.ProjectRootElement.OpenLoader(String path, ProjectRootElementCacheBase projectRootElementCache)
在Microsoft.Build.Evaluation.ProjectRootElementCache.Get(String projectFile, OpenProjectRootElement openProjectRootElement, Boolean isExplicitlyLoaded, Nullable1 preserveFormatting)
在Microsoft.Build.Construction.ProjectRootElement.Open(String path, ProjectRootElementCacheBase projectRootElementCache, Boolean isExplicitlyLoaded, Nullable1 preserveFormatting)
在Microsoft.Build.Construction.ProjectRootElement.Open(String path, ProjectCollection projectCollection, Nullable1 preserveFormatting)
在Microsoft.VisualStudio.ProjectSystem.ProjectLockService.Microsoft.VisualStudio.ProjectSystem.IProjectLockReleaser.GetProjectXmlAsync(String projectFile, CancellationToken cancellationToken)
在Microsoft.VisualStudio.ProjectSystem.UnconfiguredProjectImpl.<>c__DisplayClass185_0.<<SaveUserFileAsync>b__0>d.MoveNext()
--- 前一个调用中发生异常的堆栈跟踪位置的结尾 ---
在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__76.MoveNext()
--- 前一个调用中发生异常的堆栈跟踪位置的结尾 ---
在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在Microsoft.VisualStudio.ProjectSystem.ProjectLockService.<ExecuteWithinLockAsync>d__128.MoveNext()
--- 前一个调用中发生异常的堆栈跟踪位置的结尾 ---
在Microsoft.VisualStudio.ProjectSystem.ProjectLockService.<ExecuteWithinLockAsync>d__128.MoveNext()
--- 前一个调用中发生异常的堆栈跟踪位置的结尾 ---
在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在Microsoft.VisualStudio.ProjectSystem.UnconfiguredProjectImpl.<DisposeAsync>d__174.MoveNext()
===================
如果我使用MVC Api开始一个新的解决方案,那么解决方案会被创建,但项目不会被添加。手动将其添加到解决方案时,会出现以下错误:
“Method not found: 'System.Collections.Generic.LinkedListNode1<!0> System.Collections.Generic.LinkedList1.gdt_Last()'”
我尝试过:
- 修复Visual Studio
- 卸载了与.NET或Microsoft框架有关的所有内容和Visual Studio
- 谷歌搜索(没有发现)
是否有人知道为什么会突然出现这种情况?