【发布时间】:2016-02-17 15:01:23
【问题描述】:
我在新的 ASP.NET 核心项目类型中使用 TypeScript。
我们积极使用decorators。
不幸的是,这会导致 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
摆脱in regular ASP.NET projects修改*.csproj文件的这些错误消息非常简单。
但是 ASP.NET Core 项目不使用.csproj,而是使用.xproj。
那么,如何在 ASP.NET Core 项目中允许 VS2015 中的实验性 TypeScript 装饰器支持?
您可能会找到最简单的项目来重现问题in sample github rep
【问题讨论】:
标签: typescript visual-studio-2015 asp.net-core