Blog Post

TypeScript file does not compile

Friday, August 28, 2015 4:13 AM

My issue

I had an issue where my TypeScript file did not recompiled after saving.

 

Background information

Originally the solution was to install Web Essentials by Mads Kristensen, which had support for compiling TypeScript

This solution has been superseded by Microsoft including compiler into Visual Studio itself.

 

Now TypeScript configuration is set in two places

  • In your project
  • Inside of options if project is not enough

 

Project configuration

Steps

  • Click in your Solution on your Project
  • Use Shortcut : Alt+Enter
  • You will be able to see Typescript Buid
  • Make sure that you have checked Compile on Save

Configuration in options

Steps

  • Go to Options under the Tools menu.
  • Expand options for Text Editor
  • Expand options for TypeScript
  • Expand options for Project
  • Check “Automatically compile TypeScript file which are not part of the project”