This one is an easy fix. Here’s the situation:
You downloaded and installed the TypeScript and opened up your existing ASP.NET MVC 4 application in Visual Studio 2012. After creating a new .ts file, writing some code, and rebuilding the project, you notice that the underlying .js file didn’t change. It still has the sample code in it. What do you do??
Unload your project and edit the project file.
We need to add this:
<Target Name="BeforeBuild"> <Exec Command=""$(PROGRAMFILES)Microsoft SDKsTypeScript\0.8.0.0tsc" @(TypeScriptCompile ->‘"%(fullpath)"‘, ’ ‘)" /> </Target>