AspCore - tsconfig没有得到尊重

时间:2016-10-11 06:57:22

标签: angularjs visual-studio-2015 asp.net-core typescript2.0

我创建了一个新的asp核心项目。我想在它中使用typescript 2.0和angular 2。

我安装了typescript globaly并将它放在包

可以使用gulp编译项目,我看到一个有效的javascript文件

但是在VisualStudio的IDE中,我收到错误,表明没有加载tsconfig。不过我在虚拟打字稿项目中看到tsconfig,所以我认为它已被加载。

此外,我可以看到依赖项有一个警告信号,但所有的pacakges都已安装。运行重新安装时没有重要错误

enter image description here

我的Projectstructure看起来像这样

enter image description here

我的tsconfig有这个内容

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false,
    "outDir": "./wwwroot/app"
  },
  "compileOnSave": false,
  "files": [
    "../typings/main.d.ts",
      "./*.ts"
  ]
}

0 个答案:

没有答案