I am currently utilizing TypeScript in a project based on ASP.NET Core 3 (preview 5), using the latest version of VS 2019 16.1.1 (tsc: 3.4).
Whenever I perform a "Rebuild All" or make changes to any C# files or even modify the tsconfig.json file, all my TypeScript files compile without any issues.
However, when I make modifications to any of the .ts files, save them, and then try to "Build" in VS 2019, it just displays "all up to date" and does not trigger a compilation process.
Things I've already attempted:
- I experimented with changing the order of
compileOnSave
andcompilerOptions
, but it had no effect. - I also tried setting
compileOnSave
to eithertrue
orfalse
, but that did not solve the issue. Although havingcompileOnSave
set totrue
doesn't matter much to me personally (I would be satisfied if it compiles during build), it could offer some diagnostic insights.
Contents of tsconfig.json:
"compileOnSave": false, // whether true or false doesn't impact
"compilerOptions": {
"module": "none",
"noImplicitAny": true,
"noEmitOnError": true,
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"target": "es2015",
"lib": [
"es2015",
"es5",
"dom"
],
"outDir": "wwwroot/js/gen-ts",
"typeRoots": [
"./wwwroot/lib/@types"
]
},
"include": [
"./Scripts"
]