我可以在VS2015中打开一个解决方案或项目,但是当我尝试打开(在我的情况下)csharp代码文件(.cs)Visual Studio崩溃(而不是以智能方式)时。VS2015在打开.cs文件时崩溃
创建新代码文件(如类)时也是如此。
- 访问.log文件没有发现任何错误。
- 删除组件缓存并没有帮助
这里从事件日志条目:
应用:devenv.exe的Framework版本:v4.0.30319说明:通过统环境应用程序请求终止进程.FailFast(字符串消息)。消息:System.AggregateException:发生一个或多个错误。 ---> System.EntryPointNotFoundException:未找到入口点。在Microsoft.CodeAnalysis.Editor.CSharp.NavigationBar.CSharpNavigationBarItemService.d__3.MoveNext()---上一个位置的堆栈跟踪结束位置的Microsoft.CodeAnalysis.Editor.CSharp.NavigationBar.CSharpNavigationBarItemService.GetTypesInFile(SemanticModel semanticModel,CancellationToken cancellationToken)抛出异常---在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)上的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)上Microsoft.CodeAnalysis.Editor.CSharp.NavigationBar.CSharpNavigationBarItemService.d__1.MoveNext ()---从以前位置抛出异常的堆栈跟踪结束---在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)上的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)。 Runtime.CompilerServices.TaskAwaiter.ValidateEnd(任务任务),位于Microsoft.CodeAnalysis.Editor.Implementation.Navigation Bar.NavigationBarController.d__29.MoveNext()---内部异常堆栈跟踪结束---在System.ThreadingIfExceptional(布尔includeTaskCanceledExceptions)在System.Threading.Tasks.Task 1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task
1.get_Result()at Microsoft.CodeAnalysis.Editor.Implementation.NavigationBar.NavigationBarController。 <> c__DisplayClass32_0.b__0(任务1 t) at Roslyn.Utilities.TaskExtensions.<>c__DisplayClass12_1
2.b__1(任务_)在Roslyn.Utilities.TaskExtensions。<> c__DisplayClass6_0 1.<SafeContinueWith>b__0(Task t) ---> (Inner Exception #0) System.EntryPointNotFoundException: Entry point was not found. at Microsoft.CodeAnalysis.Editor.CSharp.NavigationBar.CSharpNavigationBarItemService.GetTypesInFile(SemanticModel semanticModel, CancellationToken cancellationToken) at Microsoft.CodeAnalysis.Editor.CSharp.NavigationBar.CSharpNavigationBarItemService.<GetTypesInFileAsync>d__3.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.CodeAnalysis.Editor.CSharp.NavigationBar.CSharpNavigationBarItemService.<GetItemsAsync>d__1.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.CodeAnalysis.Editor.Implementation.NavigationBar.NavigationBarController.<ComputeModelAsync>d__29.MoveNext()<--- Stack: at System.Environment.FailFast(System.String, System.Exception) at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception) at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action
1)在Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception的)在Roslyn.Utilities.TaskExtensions + < > c__DisplayClass6_0 1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task) at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean) at System.Threading.Tasks.Task
1 [[系统.__佳能,mscorlib程序,版本= 4.0.0.0,文化=中性公钥= b77a5c561934e089]]。GetResultCore(布尔型)在System.Threading.Tasks.Task 1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result() at Microsoft.CodeAnalysis.Editor.Implementation.NavigationBar.NavigationBarController+<>c__DisplayClass32_0.<StartSelectedItemUpdateTask>b__0(System.Threading.Tasks.Task
1)在Roslyn.Utilities.TaskExtensions + < > System_Threading.Tasks.ContinuationResultTaskFromTask`1 [[System .__ Canon,mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089]]。b__0(System.Threading.Tasks.Task)> [c__DisplayClass12_1 2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<ContinueWithAfterDelay>b__1(System.Threading.Tasks.Task) at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0
] System .__ Canon,mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089]]。 System.Threading.Tasks.Execute()在System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)在System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback ,System.Object,布尔)在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,布尔)在System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks .Task ByRef)System.Threading.Tasks.ExecuteEntry(Boolean)System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()System.Threading.ThreadPoolWorkQueue.Dispatch()System.Threading。 _ThreadPoolWaitCallback.PerformWaitCallback()
是否https://stackoverflow.com/questions/32967637/vs-2015-crash-possibly-related-to-code-analysis help? – mjwills