TypeScript versions and upgrade

3 posts, 1 answers
  1. Ruud
    Ruud avatar
    51 posts
    Member since:
    Oct 2012

    Posted 12 Nov 2015 Link to this post

    Hi,

    I might have missed it; but somehow I cannot see which TypeScript version is used in my VS extension. I am using VS2013 update 4 with ReSharper. Running the command  Tsc -v (in the package manger console) gives back:

    Version 1.0.3.0

    Which makes me think I am using v1.0.3.0 of TypeScript. Of course, I would like to use the latest (1.6). My questions are:

    • how to determine the TypeScript version used in my AppBuilder project?
    • how to upgrade the TypeScript version used in the AppBulider project supported by the Telerik extensions for VS 2013/2015.

    Best regards,

    Ruud

  2. Answer
    Aleksandar Hitrov
    Admin
    Aleksandar Hitrov avatar
    10 posts

    Posted 13 Nov 2015 Link to this post

    Hi Ruud,

    You can determine the TypeScript version your AppBuilder project will compile against from the *.iceproj file:
    • If a <TypeScriptToolsVersion> tag has been specified then the TypeScript version used is the value of this tag.
    • If no <TypeScriptToolsVersion> tag has been specified then TypeScript will default to the system default value. For your system you can find the default TypeScript version from %programfiles(x86)%\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets for Visual Studio 2013 and from %programfiles(x86)%\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets for Visual Studio 2015.

    You can set the TypeScript version your Appbuilder project compiles against by setting the <TypeScriptToolsVersion> tag in the *.iceproj file.

    Please note that AppBuilder extension itself does not include a TypeScript compiler and in order to be able to use a specific TypeScript version you should first install the TypeScript for Visual Studio extension for this version. 

    Let us know if you have any other questions.

    Regards,
    Aleksandar Hitrov
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Ruud
    Ruud avatar
    51 posts
    Member since:
    Oct 2012

    Posted 24 Nov 2015 in reply to Aleksandar Hitrov Link to this post

    Hi,

    Good hint, but I had to do some more stuff on my machine as well (stated below in case someone runs into the same issue):

    • Issue: when executing tsc -v, the wrong version is displayed. Resolution: modify the PATH system variable (see this article)
    • Issue: when the TypeScript version is upgrade, intellisense is not aware of this. Resolution: turned out to be a ReSharper issue; after upgrade to version 10 this was resolved (you also need v10 for TypeScript 1.6 support).

    Thanks again and best regards,

    Ruud

Back to Top