Skip to content

Instantly share code, notes, and snippets.

@surrealist
Created February 27, 2013 17:57
Show Gist options
  • Select an option

  • Save surrealist/5050001 to your computer and use it in GitHub Desktop.

Select an option

Save surrealist/5050001 to your computer and use it in GitHub Desktop.
Add to csproj to enable TypeScript 0.8.2 compile-on-save.
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<TypeScriptTarget>ES5</TypeScriptTarget>
<TypeScriptIncludeComments>true</TypeScriptIncludeComments>
<TypeScriptSourceMap>true</TypeScriptSourceMap>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TypeScriptTarget>ES5</TypeScriptTarget>
<TypeScriptIncludeComments>false</TypeScriptIncludeComments>
<TypeScriptSourceMap>false</TypeScriptSourceMap>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment