I have a angular2 webapplication where I'm using Typescript 2.0. I have install locally in my VS the version 2.0 and changed also the tag for the typescript version in my VS project. Locally vs build works fine. In my CD pipeline on Visual Studio Team Services with a vnext build now build fails with this:
2016-11-05T16:10:22.0371090Z C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.8\tsc.exe --project "C:\a\1\s\src\Emersy\tsconfig.json"
2016-11-05T16:10:22.7095466Z ##[error]VSTSC(0,0): Error TS5023: Build: Unknown compiler option 'strictNullChecks'.
Looks like that the build server is using the typesript version 1.8 is this possible?
Typescript 2.0 is not available in Hosted Build agent. But you could use Microsoft.TypeScript.MSBuild package instead, after that you could build your project on Hosted Agent with typescript 2.0.
Edit your project file (.csproj)
a.) Configure MSBuild to use the NuGet package's props file.
b.) Configure MSBuild to use the NuGet package's targets file.
If it is .Net Core project, add this code to section of .xproj file
TypeScript 2.0.6 is now available to the hosted build agent.
https://www.visualstudio.com/en-us/docs/build/admin/agents/hosted-pool
I don't think the Hosted build agents have support for TypeScript 2.0 at the moment.
From VisualStudio.com: