Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What determines which version of Typescript is used during an msbuild process?

I have multiple systems for performing C# solution build via a msbuild script. Within this solution is a project (csproj) that contains references to .ts files to be compiled using visual studio 2013 built in support for tsc.

On our original build system when the project builds from the msbuild project script it references C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0 while on a new system it's wired to C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.1, and we need 1.0 to work properly. How/where do I change this to point at the proper version?

like image 217
Maniaque Avatar asked Dec 04 '14 22:12

Maniaque


1 Answers

You can open the csproj in a texteditor and add the following to it, to use the 1.0 TypeScript compiler.

<PropertyGroup>
    <TypeScriptToolsVersion>1.0</TypeScriptToolsVersion>
</PropertyGroup>

Just but it below another property group and you should be good to go. Offcourse TypeScript 1.0 should be installed to make this work.

like image 164
Dick van den Brink Avatar answered Sep 28 '22 01:09

Dick van den Brink