It doesn’t look like AppHarbor is supporting TypeScript yet, which makes sense considering that TypeScript is in preview. So if you want to use AppHarbor to build your TypeScript files as part of its continuous integration/deployment, you’ll have to do a little bit of manual work. Before going through the steps below, make sure you have followed the steps in the Compile-on-Save TypeScript post.

Copy C:\Program Files\MSBuild\Microsoft\Visual Studio\v11.0\TypeScript and C:\Program Files\Microsoft SDKs\TypeScript into some place in your repository. I copied the contents of both directories into a directory at the top of my repository, Tools\Typescript.

In your copied Microsoft.TypeScript.targets, replace

<Exec Command="tsc $(TypeScriptBuildConfigurations) @(TypeScriptCompile ->'"%(fullpath)"', ' ')" />

with

<Exec Command="..\Tools\TypeScript\tsc.exe $(TypeScriptBuildConfigurations) @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" />

In your .csproj file, replace

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" />

with

<Import Project="..\Tools\TypeScript\Microsoft.TypeScript.targets" />

If you put the copied files somewhere else in your repository, make sure you modify the paths in the replacement code appropriately. Commit/push your changes and AppHarbor should successfully build your project.