I have a post build event that runs reflection code over some of my controllers to generate a definition of my routes in typescript. If I activate the TypescriptCompile option in my csproj, the DLL generation will fail if any Typescript file is not correct. Then my post build event will fail because the dll won't exists.
I want to implement the following schema :
- Build my dll without typescript compilation
- Run my post build event to generate the typescript file with my route definition
- Run another post build event to compile / validate ts files fail if they are not correct
The first 2 steps work fine but I'm stuck at the last one. Failing to find a command line to run typescript compilation on a csproj file.