【发布时间】:2016-12-05 14:48:48
【问题描述】:
我正在使用 TypeScript + Angular 2 开发 .NET Core 应用程序。我想在 Azure 上部署它。当我这样做时,在 Azure 从我的存储库获取代码后,我看到以下构建错误:
“VSSTC:错误 TS5023:构建:未知编译器选项 'lib'。[D:\home\site\repository\AC.API\AC.API.xproj]”
我的tsconfig.json 正在关注:
{
"compileOnSave": true,
"compilerOptions": {
"noImplicitAny": true,
"noEmitOnError": true,
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "commonjs",
"moduleResolution": "node",
"removeComments": false,
"target": "es5",
"lib": [
"es2015",
"es5",
"dom"
]
},
"include": [
"app/**/*.ts"
]
}
本地一切正常。如果我删除 tsconfig.json 中的“lib”部分,我无法在本地编译解决方案。
所以,我有一些问题。 Azure 可以编译 TypeScript 并执行 Gulp 任务吗?如何更改 Azure 上的 TypeScript 版本?或者我该如何解决我的问题?
【问题讨论】:
-
我很确定您可以在持续集成和部署中做到这一点。你绝对可以在 Visual Studio Team Service 中做到这一点。
标签: azure typescript gulp asp.net-core