Where is the TypeScript Tools version set in an ASP.NET 5 Project?
It appears the TypeScript Tools (and corresponding compiler version) for ASP.NET 5 projects is set in the following files:
TS 1.7: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets
<PropertyGroup>
<TypeScriptToolsVersion Condition="'$(TypeScriptToolsVersion)'==''">1.7</TypeScriptToolsVersion>
<TscToolPath Condition="'$(TscToolPath)' == ''">$(MSBuildProgramFiles32)\Microsoft SDKs\TypeScript</TscToolPath>
<TscToolExe Condition="'$(TscToolExe)' == ''">tsc.exe</TscToolExe>
<TscYieldDuringToolExecution Condition="'$(TscYieldDuringToolExecution)' == ''">true</TscYieldDuringToolExecution>
</PropertyGroup>
TS 1.8 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\TypeScript
<PropertyGroup>
<TypeScriptToolsVersion Condition="'$(TypeScriptToolsVersion)'==''">1.8</TypeScriptToolsVersion>
<!-- Check the default folder for the nuget version of the installer first, if that exists we should use that. -->
<TscToolPath Condition="'$(TscToolPath)' == '' AND Exists('$(MSBuildThisFileDirectory)tsc\tsc.exe') ">$(MSBuildThisFileDirectory)tsc\</TscToolPath>
<TscToolPath Condition="'$(TscToolPath)' == ''">$(MSBuildProgramFiles32)\Microsoft SDKs\TypeScript</TscToolPath>
<TscToolExe Condition="'$(TscToolExe)' == ''">tsc.exe</TscToolExe>
<TscYieldDuringToolExecution Condition="'$(TscYieldDuringToolExecution)' == ''">true</TscYieldDuringToolExecution>
</PropertyGroup>
Notice the 1st line in the configuration above has the value 1.7
for the TypeScript 1.7 compiler.
Visual Studio 2015 IDE will use TypeScript that is specified in PATH. If you can change it from TypeScript 1.7 to 1.8, it will work with ASP.NET 5 apps and other apps as will.
Don't need to use GULP, I hope your using VS IDE or its VS Code
This approach will force all other applications to use TypeScript 1.8 only, however non ASP.NET 5 apps have entry in proj files.