Created
October 3, 2012 11:32
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemGroup> | |
<TypeScriptCompile Include="$(ProjectDir)\**\*.ts" Exclude="$(ProjectDir)\**\*.d.ts" /> | |
</ItemGroup> | |
<Target Name="BeforeBuild"> | |
<Exec Command=""$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.1.0\tsc.exe" @(TypeScriptCompile ->'"%(fullpath)"', ' ')" /> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment