Avatar ·

tsconfig.json错误:TypeScript和ASP.NET Core中的"Build:No inputs were found in config file"

你好!我是TypeScript新手,正在尝试在Visual Studio 2015中配置ASP.NET Core项目。我在项目根目录下有tsconfig.json,但当我尝试构建解决方案时,出现错误: "Build:No inputs were found in config file. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["node_modules","bower_components","jspm_packages"]'." 这是我的tsconfig.json: ```json { "compilerOptions": { "target": "es5", "module": "commonjs", "sourceMap": true, "outDir": "./wwwroot/js" }, "include": [ "**/*" ], "exclude": [ "node_modules", "bower_components" ] } ``` 我有一个Scripts文件夹,里面包含.ts文件,但不知为何它们没有被找到。项目中还有一个wwwroot文件夹,我想把编译后的.js文件保存到那里。我尝试过重启Visual Studio、删除node_modules并重新安装包,但错误仍然存在。我哪里做错了?也许需要指定源文件的具体路径?还是问题出在别的地方?