Using TypeScript in a brand new ASP.NET Core project has brought some challenges.
We are actively incorporating decorators into our codebase.
However, this integration is causing numerous errors to appear in the output of VS2015:
Error TS1219 Experimental support for decorators is a feature that is subject to change in a future release.
Specify '--experimentalDecorators' to remove this warning.
WebApplication2 d:\documents\visual studio 2015\Projects\WebApplication2\src\WebApplication2\wwwroot\sources\app.ts 9 Active
There are solutions available for removing these error messages when working with regular ASP.NET projects by modifying the *.csproj
file.
However, ASP.NET Core projects utilize the .xproj
file structure instead.
So, how can we enable experimental TypeScript decorator support in VS2015 for an ASP.NET Core project?
You can access a simple project showcasing this issue on a sample github repository