This project is read-only.

VS2013/ TypeSCript

Topics: General
Jul 24, 2013 at 8:01 AM
I'm using VS2013 to use typescript, but I cannot get the compile-on-save working. (I have set the settings in options). What do I do wrong?
Jul 24, 2013 at 3:27 PM
Are you using the compile on save setting that works for projects or the one for non-projects?
Jul 24, 2013 at 3:28 PM
I have both enabled, but doesn't help...
Jul 24, 2013 at 3:28 PM
I should add, both should work, and I think I was using compile-on-save inside of a project with VS2013 preview last night with, so there may be another step to it to get the bug to show up.
Jul 25, 2013 at 7:13 AM
Did a renewed try. Removed all extensions I had installed, reset VS settings and created a new MVC 4 project. Added a new typescript file, but then still it doesn't update the .js on save. Also doesn't work for empty "vs2013" web project.

Any ideas on what to try next?
Jul 25, 2013 at 11:55 AM
I have the exact same problem in vs2013.
In vs2012 it works fine..
Jul 25, 2013 at 6:50 PM
I had problems at first too in VS2013 after installing VS2013 and what fixed it for me was uninstalling TypeScript and then re-installing it.
Jul 25, 2013 at 8:05 PM
Ah, I think I might see what the issue is.

If you start a new "HTML Application with TypeScript" project, does compile-on-save work for you? If so, it might be that your MVC4 project does not have (or doesn't have an up-to-date) support for compiling TypeScript. If so, you'll need to add it to your specific project, and you can get the parts you need from that default template.
Jul 26, 2013 at 7:37 AM
jon: Great tip: that works. :) WOuld help a lot of people i'd say to put this as a giant notice in the installer of typescript....