0

我最近向 Visual Studio 2015 社区添加了一些扩展,从那时起我在加载解决方案时遇到此错误消息:

在此处输入图像描述

我尝试以管理员身份运行 Visual Studio 并禁用/卸载了新扩展,但没有任何帮助或表明问题。

日志显示此错误消息:

  <entry>
    <record>652</record>
    <time>2016/07/23 03:07:44.289</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensIndicatorService.&lt;&gt;c__DisplayClass22_0.&lt;CreateIndicator&gt;b__0()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensDataPointTemplateService.CreateIndicator(ICodeLensDescriptor descriptor, String dataPointProviderName, Func`1 viewModelReferenceFactory)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensIndicatorService.CreateIndicator(ICodeLensDescriptor descriptor, Lazy`2 provider)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensIndicatorService.IndicatorCollection.UpdateTemplateCollection()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensIndicatorService.IndicatorCollection.Connect()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensIndicatorService.IndicatorCollection..ctor(CodeLensIndicatorService indicatorService, ICodeLensDescriptor descriptor)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensIndicatorService.CreateIndicatorCollection(ICodeLensDescriptor descriptor)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensAdornmentViewModelProvider.CreateAdornmentViewModel(ICodeLensDescriptor descriptor)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensAdornmentCache.GetOrCreateCacheEntry(ICodeLensTag tag)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensAdornmentCache.GetOrCreateAdornment(ICodeLensTag tag)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensInterLineAdornmentTaggerProvider.CodeLensInterLineAdornmentTagger.AdornmentHost.TryConnectAdornment()&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensInterLineAdornmentTaggerProvider.CodeLensInterLineAdornmentTagger.&lt;&gt;c__DisplayClass41_0.&lt;CreateDelayedAdornments&gt;b__0()&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint[T](Object errorSource, Func`1 call, T valueOnThrow)</description>
  </entry>

在扩展管理器中,打字稿扩展是灰色的:

在此处输入图像描述

除了重新安装 Visual Studio 之外还有什么想法吗?

4

1 回答 1

1

Visual Studio 的版本太旧/不兼容。

升级到最新版本的Visual Studio Update 3可解决此问题。

于 2016-07-23T19:47:07.590 回答