Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2015 uses old TypeScript version

I am using VS 2015. I've just installed TypeScript 1.6.3, restarted VS 2015 and VS seems to be still using an old tsc version: (btw the setup said [Repair], so I suppose this version was already installed)

I've checked what tsc version I am using via PM console:

Package Manager Console Host Version 3.2.0.10516

Type 'get-help NuGet' to see all available NuGet commands.

PM> tsc -v
Version 1.0.3.0
PM> 

I've also checked my .csproj file and found:

<TypeScriptToolsVersion>1.6</TypeScriptToolsVersion>

and

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets')" />

What am I missing?

enter image description here

like image 468
g.pickardou Avatar asked Aug 18 '26 19:08

g.pickardou


1 Answers

inside C:\Program Files (x86)\Microsoft SDKs\TypeScript delete all the folders exept 1.7

then run in terminal

tsc -v

if nothing run

npm install -g typescript

and after

tsc -v 

and you should see 1.7 version

like image 158
Nikita Chernykh Avatar answered Aug 21 '26 16:08

Nikita Chernykh