Created
October 2, 2012 11:48
-
-
Save markrendle/3818423 to your computer and use it in GitHub Desktop.
Visual Studio project bits for TypeScript compilation
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" /> | |
</ItemGroup> | |
<Target Name="BeforeBuild"> | |
<Exec Command=""$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.0.0\tsc" -target ES5 @(TypeScriptCompile ->'"%(fullpath)"', ' ')" /> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this code to the bottom of your csproj or jsproj file to get TypeScript files compiled as part of build process.