ASP.NET 5项目中的Typescript版本

时间:2016-01-02 13:59:42

标签: angularjs typescript asp.net-core

试图遵循允许使用AngularJS 2快速入门演示ASP.NET 5项目中的typescript。我的app.component.ts文件中出现一个错误,即某个功能是一个typescript 1.5功能,当前版本是1.0。

enter image description here

然而我已经安装了1.7.3的typescript扩展,你可以在运行“tsc -v”时看到它

enter image description here

tsconfig.json

{
  "compilerOptions": {
    "version": true,
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false
  },
  "exclude": [
    "node_modules",
    "wwwroot"
  ]
}

enter image description here

0 个答案:

没有答案