We are currently utilizing Visual Studio 2019 (not the VS Code version) for our project. Within this solution, we have multiple projects included.
One of these projects contains Angular code that we compile using the traditional 'ng build' command,
While the other project is an ASP.NET MVC project with several typescript files dispersed in various folders such as the Script folder, Areas folder, and Views.
Previously, whenever we made changes to a typescript file, it would automatically compile. However, now it only compiles when performing a full build.
The "Compile on Save" option has been activated in the project properties. Additionally, I attempted using a tsconfig.json
file located at the root of the project:
{
"compileOnSave": true,
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": false,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "commonjs"
},
"exclude": [
"node_modules",
"typings",
"*.d.ts"
],
"typeAcquisition": {
"enable": false,
"exclude": [ "node" ]
}
}
I suspect that the issue may be due to the Angular project recently added. Nonetheless, unloading or deleting the project did not resolve the problem.