我有一个干净的Visual Studio 2017和ReSharper安装,但决定将其升级到15.6.2 for Visual Studio和2017.3.3 for ReSharper。不幸的是现在我继续在Visual Studio上发生崩溃,弹出说:visual studio an exception has been encountered. this may be caused by an extension
。
所以我禁用了ReSharper但它继续运行,错误日志如下:
<entry>
<record>1912</record>
<time>2018/03/19 17:15:01.680</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at Microsoft.CodeAnalysis.Classification.AbstractClassificationService.<AddSyntacticClassificationsAsync>d__3.MoveNext()
 --- End of inner exception stack trace ---
 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
 at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
 at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.TagComputer.AddClassifiedSpansForCurrentTree[TClassificationService](IClassificationDelegationService`1 delegationService, TClassificationService classificationService, SnapshotSpan span, Document document, List`1 classifiedSpans)
 at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.TagComputer.AddClassifiedSpans[TClassificationService](IClassificationDelegationService`1 delegationService, TClassificationService classificationService, SnapshotSpan span, List`1 classifiedSpans)
 at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.TagComputer.GetTags[TClassificationService](NormalizedSnapshotSpanCollection spans, HostLanguageServices languageServices, IClassificationDelegationService`1 delegationService)
 at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.TagComputer.GetTags(NormalizedSnapshotSpanCollection spans)
 at Microsoft.CodeAnalysis.Editor.Implementation.Classification.SyntacticClassificationTaggerProvider.Tagger.GetTags(NormalizedSnapshotSpanCollection spans)
 at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__39.MoveNext()
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
 at Microsoft.CodeAnalysis.Classification.AbstractClassificationService.<AddSyntacticClassificationsAsync>d__3.MoveNext()<---
</description>
</entry>
有没有人在Visual Studio 2017中遇到过这种行为,你是如何解决的?
信息:错误仍然发生在15.6.3
中答案 0 :(得分:0)
不幸的是,我有点绝望 - 耐心 - 所以我对Visual Studio
进行了全面修复,这似乎使它工作正常。然后我不得不重新安装ReSharper
。
很抱歉,我们希望花更多时间找到合适的解决方案......