I wonder if there's a way to set specific TypeScript compiler version for project in Visual Studio. So I could configure a project to always use version 1.0, even if new versions would be released.
I know it was not possible before and I wonder if things changes after TypeScript matured to 1.0 version.
I noticed that now Visual Studio creates <TypeScriptToolsVersion>0.9</TypeScriptToolsVersion>
property in a project file, but couldn't find any documentation about it.
Visual Studio Version -> VS2013
I have solved this way;
adding after
\TypeScript\
on condition statement.We can exclude type script file compilation in visual studio using below line in csproj file.
after
<TypeScriptToolsVersion>0.9</TypeScriptToolsVersion>
this line.If you try to compile a project with
<TypeScriptToolsVersion>0.9</TypeScriptToolsVersion>
using TypeScript version 1.0 you'll get the following error:So it's preventing you from compiling with newer version. It does not however put the compiler into some 0.9 compatibility mode.
But if you have TypeScript 0.9 installed, it will compile against that version. So yes, you can force a specific version of the TypeScript compiler using the attribute.
Basically what the
<TypeScriptToolsVersion>
do is that it changes the path to the compiler: