我正在使用VS2015,尝试在ASP.NET Core项目中使用TypeScript制作Angular应用程序,但无论我尝试什么,都无法使我的Angular虚拟项目被转译到
wwwroot
文件夹,尽管VS2015将其识别为TypeScript虚拟项目。这是我的项目结构:
这是我的tsconfig.json
文件:{
"compileOnSave": true,
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "system",
"experimentalDecorators": true,
"moduleResolution": "node",
"outDir": "../../wwwroot/"
},
"exclude": [
"node_modules",
"wwwroot"
]
}
Visual Studio并不会自动编译,即使在命令行中运行npm run tsc:w main.ts
也会出现文件未找到的错误。我该如何让我的ts文件进行构建?