How to use Type Script 1.8 in Visual Studio 2017 for an old project

I recently installed Visual Studio 2017 and tried to launch my project in it. This causes a TypeScript error. I think VS 2017 uses TypeScript 2.1.5, but my application was imposed on TypeScript 1.8.

How can I use VS 17 TypeScript 1.8. I already have VS 2015, and the solution works fine on it. But I really want to use 2017 (without making any changes to the code)

Odd thing: TypeScript version specified in .csproj is 1.8

 <TypeScriptToolsVersion>1.8</TypeScriptToolsVersion> 

But if I edit .csproj TypeScriptToolsVersion for something else, and then return to 1.8, the solution will compile correctly. However, after successive compilations, TypeScript appears.

+7
typescript visual-studio-2017
source share
1 answer

I noticed that the compilation errors disappeared when you β€œstarted” the downgrade of the TypeScript class using the Microsoft.TypeScript.MSBuild.1.8.11 nuget package.

So the solution / project seems to use the package version instead of the built-in version.

+9
source share

All Articles