Starting a new MVC project in Visual Studio using TypeScript for frontend development has been an interesting journey. I decided to organize my TypeScript files in a folder called Frontend
at the root of the project to avoid certain build issues that occurred when they were in the Scripts
folder. With the help of the .tfconfig
feature (introduced in version 1.8), I set the outDir
to /Scripts/app
. Everything builds and deploys smoothly on my local machine with IISExpress.
However, during a WebDeploy process from my CI server, I encountered failures due to missing files. The deployment was not just copying over js files from the Scripts
directory, but also looking for corresponding scripts for every ts source file in the Frontend
folder. This issue seems to be related to the WebDeploy process itself, as I haven't found a way to prevent it from including that directory or understand why it's searching there.