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.
How can I set up VS 2019 so it uses TS 2.8?
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 .
If you only have TypeScript installed for Visual Studio then: Start the Visual Studio Command Prompt. Type tsc -v and hit Enter.
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 .
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.
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
Then, when I launched Visual Studio 2019 it was picked up just fine
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With