VS2015 - Change TypeScript Version

前端 未结 3 959
故里飘歌
故里飘歌 2020-12-03 01:21

I am trying to update my Visual Studio 2015 + Cordova + TypeScript project to use TypeScript version to 1.6.0-beta. I am currently using 1.5.3.

3条回答
  •  清歌不尽
    2020-12-03 01:41

    Visual Studio 2017 version 15.3<=:

    1. Right click on the project node in Solution Explorer
    2. Click Properties
    3. Go to the TypeScript Build tab
    4. Change TypeScript version to the desired version or "use latest available" to always default to the newest version installed

    Visual Studio 2017 version 15.2>=:

    1. From the top menu bar, open Tools > Options > Text Editor > JavaScript/TypeScript > IntelliSense

    2. Change Use TypeScript version to your desired version

    I had a problem when updating that the version did not fall through. Fixed it by setting a lower version, shut down Visual Studio and then set the newer version. This fixed the problem.

    https://github.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017

提交回复
热议问题