Join GitHub today
Simple way to install typescript #7998
now vs2013 generate js file when i save but give compilation error on build.
It's hard to know what to do ...
alsow i dont know what information/log to provide ...
It was set to 1.7 and i have try it to 1.8.
If i remove the project ts version, it will not be confusing on wish this project is based on?
My problem is "patched" but i steel dont like the way it install ... But i love TypeScript!
tanks for the reply, i will try to remove it on a fresh install to see if it solve the compiles errors.
there are few issues going on. so let me see if i can break them down.
The problem is the TS 1.0 installer added itself to the
The best way is to edit your path and remove it. See #2068 for more details.
New language versions have new features. if you use one of the new features (say from 1.8) on an older compiler (say 1.7), you will get a syntax error, as older versions of the compiler did not understand that syntax.
If your project does not use any new features, then there are no errors, 1.7 code should work on 1.7 and on 1.8, but the opposite is not true.
You can have multiple compiler versions installed on your machine. these are the tools you use to build from MSBuild or through he comandline, i.e,
You could chose to "freez" a project to only build against a specif version of the compiler. that is i want this project to always build against TS 1.7. you do this by specifying
if you remove
see ToolsVersion documentation at http://www.typescriptlang.org/docs/handbook/compiler-options-in-msbuild.html#ToolsVersion for more details.
VS only loads the latest version of the language installed. so if you install TS 1.8, the VS errors you get are for TS 1.8, and not TS 1.7.
It depends on what version of TS you are using for most of your projects. if do not mind, then move all your projects to TS 1.8 by setting