Skip to content

Instantly share code, notes, and snippets.

@Liteolika
Created September 27, 2013 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Liteolika/6727302 to your computer and use it in GitHub Desktop.
Save Liteolika/6727302 to your computer and use it in GitHub Desktop.
How to get typescript compiled in VS2012 when it doesnt do it at save.
Unload the project, edit the csproj file to add this.
<Target Name="BeforeBuild">
<Exec Command="&quot;$(PROGRAMFILES)\Microsoft SDKs\TypeScript\tsc.exe&quot; @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" />
</Target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment