Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in Visual Studio 2015 Update 3 when opening solution (Typescript)

I updated to Visual Studio 2015 Update 3 this morning and in my main web solution I now get the following warning when I open it. I also get this warning when I open typescript files and I can no longer comment and uncomment code through the shortcut or toolbar. I also no longer have IntelliSense etc...

vs2015u3exception

In the xml file it says the following:

 <entry>
    <record>851</record>
    <time>2016/07/04 11:40:28.893</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>LegacySitePackage failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]Source: &apos;Microsoft.VisualStudio.LanguageServices.TypeScript&apos; Description: Field not found: &apos;Microsoft.CodeAnalysis.Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic&apos;.&#x000D;&#x000A;System.MissingFieldException: Field not found: &apos;Microsoft.CodeAnalysis.Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic&apos;.&#x000D;&#x000A;   at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</description>
    <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
    <hr>80131511</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>852</record>
    <time>2016/07/04 11:40:28.895</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral](null)</description>
    <guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
    <hr>80131511</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>

What I have tried:

  • Repairing Update 3
  • Reinstalling TypeScript and removing older versions I had installed: https://www.microsoft.com/en-us/download/details.aspx?id=48593
  • devenv.exe /updateconfiguration & devenv.exe /clearcache
  • Deleting %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache
  • Updating project typescript version to 1.8
  • Setting path environment variable of typescript to 1.8 instead of 1.0

So now my Visual Studio tells me I have TypeScript version 1.8.30 installed. enter image description here But in my Programs and Features I only have verison 1.8.6.0 installed (which is the latest). programsandfeaturestypescript

Only thing that is left to do is reinstall Visual Studio itself.

Any ideas, suggestions? Thanks!

like image 704
Schoof Avatar asked Jul 04 '16 11:07

Schoof


People also ask

How to Check Visual Studio 2015 Update 3 is installed?

Start the Visual Studio Installer, and verify that Help > About shows version 14.0. 25431 or greater. Examine the installed updates list in Control Panel, and verify that both Visual Studio 2015 update 3 (KB3022398) and the update for Microsoft Visual Studio 2015 (KB3165756) are present.

What is the latest update for Visual Studio 2015?

Visual Studio 2015 Update 3 includes Tools for Apache Cordova Update 10, including the improvements below. and Update 10. For the latest news about our tools, visit our Developer Blog on GitHub. We've added support for Cordova 6.1.


1 Answers

I solved this by:

  • uninstalling Visual Studio with Visual Studio Uninstaller created by microsoft.
  • removed any leftover typescript installs (In Add/Remove software)
  • removed the TypeScript SDK's in C:\Program Files (x86)\Microsoft SDKs\TypeScript
  • running CCleaner (Cleaner and Registry)

Hope this helps somebody!

like image 190
Schoof Avatar answered Jan 02 '23 23:01

Schoof