MSBuild task for compiling typescript files.

How to use:

  <UsingTask TaskName="CompileTypeScriptFiles" AssemblyFile="MSBuild.TypeScriptCompile.dll" />
  
  <Target Name="TypeScriptCompile" BeforeTargets="CoreCompile">

    <CompileTypeScriptFiles 
      InputFiles="@(TypeScriptCompile)" 
      CompilerPath="$(SolutionDir)dependencies\typescript\tsc.exe" 
      CompilerOptions="-target ES5 --sourcemap --comments">
      <Output TaskParameter="OutputFiles" ItemName="Content" />
    </CompileTypeScriptFiles>

  </Target>

Last edited Apr 26, 2013 at 2:00 PM by mikwal, version 2