This is a migrated thread and some comments may be shown as answers.

TypeScript versions and upgrade

2 Answers 150 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ruud
Top achievements
Rank 1
Ruud asked on 12 Nov 2015, 09:01 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Aleksandar Hitrov
Telerik team
answered on 13 Nov 2015, 01:26 PM
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.

 
0
Ruud
Top achievements
Rank 1
answered on 24 Nov 2015, 02:51 PM

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

Tags
AppBuilder extension for Visual Studio
Asked by
Ruud
Top achievements
Rank 1
Answers by
Aleksandar Hitrov
Telerik team
Ruud
Top achievements
Rank 1
Share this question
or