I tried setting it up in Visual Studio, but had a hard time getting it to compile on build. I was still having to run the command line compiler (this was on an existing project, so that may have had something to do with it).
Here are the steps to get it working to compile your Typescript files on build in Visual Studio 2012:
- Download and Install the Typescript plugin for Visual Studio
- Download and Install the Web Essentials 2012 plugin for Visual Studio
- In Visual Studio, go to TOOLS > Options
- Select Web Essentials
- Change the Option for Compile all TypeScript files on build to True.