Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeScript 2.8 unavailable in Visual Studio 2019

I am trying to use TypeScript 2.8 in my Visual Studio 2019 as my team is using that version of TS. However, when I go to Project properties -> TypeScript Build it says that the version is unavailable. I tried installing that specific TS SDK version by using the Visual Studio Installer but it appears to be not in the list there. The only version I am seeing is 3.5.

enter image description here

How can I set up VS 2019 so it uses TS 2.8?

like image 497
Georgi Koemdzhiev Avatar asked Jul 25 '19 14:07

Georgi Koemdzhiev


People also ask

How do I know if TypeScript is installed in Visual Studio 2019?

Test that the TypeScript is installed correctly by typing tsc -v into your terminal or command prompt. You should see the TypeScript version print out to the screen. For help on possible arguments you can type tsc -h or just tsc .

How do I find TypeScript version in Visual Studio?

If you only have TypeScript installed for Visual Studio then: Start the Visual Studio Command Prompt. Type tsc -v and hit Enter.

How do I install a specific version of TypeScript?

Tip: To get a specific TypeScript version, specify @version during npm install. For example, for TypeScript 3.6. 0, you would use npm install --save-dev [email protected] . To preview the next version of TypeScript, run npm install --save-dev typescript@next .


2 Answers

If you don't have VS2017 installed you can just install the SDK from here:

https://www.microsoft.com/en-us/download/details.aspx?id=55258

It says for VS2017 but it is standalone and VS2019 recognises it.

Update: Good solution but the link is for TypeScript 3.2 and the original question is for 2.8. Use this link for 2.8: http://download.microsoft.com/download/7/0/A/70A6AC0E-8934-4396-A43E-445059F430EA/2.8.4-TS-release-dev14update3-20180515.1/TypeScript_SDK.exe Or open the Details section to see all versions.

like image 100
colethecoder Avatar answered Sep 20 '22 16:09

colethecoder


I managed to use TypeScript 2.8 in Visual Studio 2019 by launching Visual Studio 2017, go to the Installer and install the 2.8 SDK from there. Not sure why this is not an option in Visual Studio 2019

enter image description here

Then, when I launched Visual Studio 2019 it was picked up just fine

like image 45
Georgi Koemdzhiev Avatar answered Sep 20 '22 16:09

Georgi Koemdzhiev