cmichaelgraham / aurelia-typescript

A starter kit for working with the Aurelia TypeScript type definitions
MIT License
144 stars 52 forks source link

Replace TypeScriptAdditionalFlags element in csproj files with specific elements #70

Open paulvanbrenk opened 8 years ago

paulvanbrenk commented 8 years ago

Currently the ~\aurelia-typescript\skel-nav-esri-vs-ts\skel-nav-esri-vs-ts\skel-nav-esri-vs-ts.csproj file specifies the following additional flags to enable decoratorMetadata and decorators in the emit using the following element:

<TypeScriptAdditionalFlags> $(TypeScriptAdditionalFlags) --emitDecoratorMetadata --experimentalDecorators </TypeScriptAdditionalFlags>

This doesn't work well with the TypeScript language service in Visual Studio, so things like Compile on Save won't produce the correct output, and you'll see errors in the editor.

If you replace that element with the following 2 elements, the language service will work as expected:

<TypeScriptExperimentalDecorators>true</TypeScriptExperimentalDecorators>
<TypeScriptEmitDecoratorMetadata>true</TypeScriptEmitDecoratorMetadata>