Reputation: 226
I have an existing ASP.NET MVC project which uses typescript version 0.8 and I need to upgrade it to 1.5.
During the time of version 0.8 there was no <TypeScriptToolsVersion>
element in the .csproj file but the following exists
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TypeScriptTarget>ES5</TypeScriptTarget>
<TypeScriptIncludeComments>false</TypeScriptIncludeComments>
<TypeScriptSourceMap>false</TypeScriptSourceMap>
</PropertyGroup>
So my question is this:
<TypeScriptToolsVersion>1.0</TypeScriptToolsVersion>
do
i still need <TypeScriptTarget>ES5</TypeScriptTarget>
. I'm not sure if TS versions 1.0 -
1.5 above has the option to select specific ES version or it will just default to ES6. Upvotes: 1
Views: 408
Reputation: 950
Yes tsc
has option to select target since 0.8 to newest version. Default value is ES5 - I think in older version default was ES3.
I just believe that typings authors create most compatible definitions possible. tsd
is not versioned therefore you can only rely on build errors...
Only deployment environments need to have tsc
installed. You can install VS extension, use tsc
itself (needs node) or use tools like grunt/gulp with some TS plugin. But in prod environment you don't need VS/node - it should use deployed version of the product with js files.
Upvotes: 2