Currently, I am part of a team working on a large project using Typescript in Visual Studio. As we have progressed through different versions of the project, we have encountered an issue with versioning the installed TypeScript within Visual Studio.
Situation:
- Version 1.1.0 of the product was released, built on TypeScript 1.8
- Version 1.2.0 of the product was released, built on TypeScript 2.1
A bug reported by customer X is related to version 1.1.0, and our team needs to work on fixing it.
Challenge:
Visual Studio currently defaults to using the latest TypeScript version (2.1), causing code from version 1.1.0 to not compile.
I could manually adjust the TypeScript version in the project file and navigate to tsc.exe to resolve this issue. Despite having TypeScript globally installed, Visual Studio insists on using its own folder for the compiler instead of utilizing the global installation.
Seeking advice from others who may have faced a similar problem and found a more efficient solution.