【发布时间】:2017-05-03 20:29:54
【问题描述】:
我有一个 ASP.NET 核心项目,当我尝试构建它时出现此错误:
error TS18003: Build:No inputs were found in config file 'Z:/Projects/client/ZV/src/ZV/Scripts/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["../wwwroot/app","node_modules/*"]'.
1> The command exited with code 1.
1> Done executing task "VsTsc" -- FAILED.
这是我的tsconfig.json 文件:
{
"compileOnSave": true,
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es5", "dom" ],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": false,
"outDir": "../wwwroot/app/",
"removeComments": false,
"sourceMap": true,
"target": "es6"
},
"exclude": [
"../wwwroot/app",
"node_modules/*"
]
}
这是一个错误还是我做错了什么?我最近确实将 Visual Studio 2015 升级到更新 3。以前有人遇到过这种情况吗?
【问题讨论】:
-
这是预期行为。你需要编译一些东西。
-
@AluanHaddad 你说这好像是事实。您能否为您的断言提供证据。
-
您的来源应该是您在 tsconfig 上的“包含”中指向的位置
-
默认的 tsconfig.json 没有 "include" 和 "exclude" 属性,所以我不得不同时添加。由于某种原因,似乎两者都是必需的
标签: json typescript visual-studio-2015 asp.net-core