TS 0.8.1, compiler now exits with error code 3

Topics: General
Nov 15, 2012 at 8:27 PM


Just downloaded the new TS version 0.8.1. My project that compiled fine with 0.8 now fails to compile with "code 3" and no other error messages.

Any hints?



Nov 15, 2012 at 8:38 PM

Ouch, sorry, my CSPROJ was hardcoded to point to the 0.8.0 version of the compiler (the 0.8.1 MSI of course wiped out that folder). 



Nov 15, 2012 at 9:04 PM
Edited Nov 16, 2012 at 1:03 AM

That's right - projects created with 0.8.0 will need to be manually edited to remove the hardcoded version dependency.  We've removed this from the templates in v0.8.1 so this problem will not occur in future drops.  You can replace the PostBuild step in the proj file with the following - borrowed from the new project templates:


<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
  <TypeScriptSourceMap> --sourcemap</TypeScriptSourceMap>
<Target Name="BeforeBuild">
  <Message Text="Compiling TypeScript files" />
  <Message Text="Executing tsc$(TypeScriptSourceMap) @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" />
  <Exec Command="tsc$(TypeScriptSourceMap) @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" />
Nov 19, 2012 at 11:24 AM

Also make sure your project has a Configuration element up at the top, or you'll lose debugging support and experience Other Weirdness™.


  <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>