mortenma71
mortenma71

Reputation: 1286

How do I get the VS2015 web project to build my Typescript files using TypeScript 1.8?

I have Typescript 1.0, 1.4 and 1.8 folders in my Typescript sdk folder (C:\Program Files (x86)\Microsoft SDKs\TypeScript) and my webproject config file (x.csproj) has 1.8 set in TypeScriptToolsVersion (1.8).

However, when I build the project it appears TypeScrpit 1.4 is used:

5>PreComputeCompileTypeScript: 5> C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\tsc.exe --module CommonJS --sourcemap --target ES5 --noEmitOnError --locale en-US "C:\Projects\MyProject.Web\Scripts\appts.ts" 5>TypeScriptClean:

What am I missing?

Upvotes: 0

Views: 145

Answers (1)

Ross Scott
Ross Scott

Reputation: 1732

Open up the .csproj file in a text editor. You need to set the following line

<TypeScriptToolsVersion>1.8</TypeScriptToolsVersion>

This can be found under Project -> PropertyGroup

Upvotes: 0

Related Questions