我有像這樣的結構的Visual Studio項目:的Visual Studio編譯沒有打字稿
我tsconfig.json
樣子:
{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"outDir": "../wwwroot/"
},
"exclude": [
"node_modules",
"wwwroot"
]
}
然而,VS是不是編譯app.ts
進入wwwroot
文件夾。
我錯過了什麼?
您是否在項目屬性 - >構建中選中了「編譯生成腳本」? –
這是...我沒有建立!我認爲這是連續的而不是建立。感謝指針。 – BanksySan
@BanksySan您可能正在尋找屬性> TypeScript Build –