我正在尝试在Visual Studio中构建一个使用TypeScript的应用程序。我按照这里的说明安装了项目所需版本(2.2)的TypeScript编译器,并使用NPM进行了安装。
npm install typescript
我通过以下方式验证了我的安装:
tsc --version
然后它返回了
Version 2.2.2
应该是这样的。但是,当我尝试构建我的解决方案时,我一直收到以下错误信息:
Your project specifies TypeScriptToolsVersion 2.2, but a matching compiler was not found. The latest available TypeScript compiler will be used (2.3). To remove this warning, install the TypeScript 2.2 SDK or update the value of TypeScriptToolsVersion.
我已经试过在 Google 上搜索,但没有发现任何解决方案。有人能指点我一下该如何解决吗?