Skip to content

Instantly share code, notes, and snippets.

@blachniet
Created October 3, 2012 11:32
Show Gist options
  • Save blachniet/3826496 to your computer and use it in GitHub Desktop.
Save blachniet/3826496 to your computer and use it in GitHub Desktop.
Compile TypeScript in MVC4 project by adding this to the end of the *.csproj
<ItemGroup>
<TypeScriptCompile Include="$(ProjectDir)\**\*.ts" Exclude="$(ProjectDir)\**\*.d.ts" />
</ItemGroup>
<Target Name="BeforeBuild">
<Exec Command="&quot;$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.1.0\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