【发布时间】:2014-08-27 20:33:33
【问题描述】:
我有一个连接到 Visual Studio Online 的 Azure 网站。连接两者时,Visual Studio Online 会在托管生成控制器上创建一个持续交付生成运行。此构建一直失败,在 underscore.d.ts(来自http://definitelytyped.org/ 的 TypeScript 类型定义)中出现单个 typescript 编译错误,内容如下:
\Scripts\typings\underscore\underscore.d.ts(2315,1): error TS2160: Build: A generic type may not reference its own with a Wrapped form of its own type parameters。
我们使用 TypeScript 1.0:
<TypeScriptToolsVersion>1.0</TypeScriptToolsVersion>
项目在本地和我们的本地 TFS 构建服务器上构建都没有错误。我的猜测是问题出在 Visual Studio Online 中的 TypeScript 编译器版本。
我的问题是是否有解决此问题的方法。比如有没有。有条件地从构建中排除 underscore.d.ts 的可能性吗?
【问题讨论】:
-
我提交了bug report for this。
标签: underscore.js typescript azure-devops definitelytyped