Netjs
Netjs copied to clipboard
Visual Studio 2013 Web Essentials typescript build fails on mscorlib.ts
Hi, this is a question rather than a bug. I'm trying to use Netjs to automatically generate typescript versions of some c# class files. The first part works OK, I do get a typescript file using Netjs in the project post-build events command line like so -
netjs "$(TargetPath)" MOVE /Y "$(TargetDir)$(TargetName).ts" "$(ProjectDir)"
The problem however, is that the built in TypeScript linter objects to the formatting of both the output TS file and the provided mscorlib.ts.
I've reformatted mscorlib.ts but still have some 197 errors such as -
Error 3 TsLint: expected variableDeclarator: 'index' to have a typedef. Error 9 TsLint: if statements must be braced ..\mscorlib.ts Error 10 TsLint: missing semicolon
I can of course fix this by going through the entire file and adding missing braces etc but it's going to take a while and I wondered if I'm doing something wrong?
Thanks