While working in NSwag Studio, I came across a flag that allows the use of a specific TypeScript version for generating TypeScript typings/code. However, when attempting to achieve the same functionality within my .csproj file, the approach seems to have no effect. Here is the MSBuild command I am using:
<Exec Command="$(NSwagExe_Core20) swagger2tsclient /input:$(OutDir)api.json /output:..\api.ts /generateClientClasses:false /typeScriptVersion:2.4 /dateTimeType:Date /nullValue:Undefined /generateDtoTypes:true /markOptionalProperties:true /generateCloneMethod:true /typeStyle:Class /generateDefaultValues:true /generateConstructorInterface:true" />
It appears that sending the TS version as a parameter in this manner may be incorrect. Does anyone know the correct parameter name to use for specifying the TypeScript version?