简体   繁体   English

使用VS 2015的Angular 2应用程序的VSTS中的“未知编译器选项lib”

[英]'Unknown Compiler Option lib' in VSTS of Angular 2 Application using VS 2015

I had developed simple angular 2 application with typescript 2.0 version in visual studio 2015 by using below link. 我使用以下链接在visual studio 2015中开发了带有typescript 2.0版本的简单角度2应用程序。

https://angular.io/docs/ts/latest/cookbook/visual-studio-2015.html https://angular.io/docs/ts/latest/cookbook/visual-studio-2015.html

Then after, I configured the DEVOPS for that application means when every I check in the code into my team project available in team foundation server using visual studio 2015. it will automatically start build for my application at that time I got exception like " Unknown Compiler Option lib " this below figure. 之后,我为该应用程序配置了DEVOPS,这意味着每当我使用visual studio 2015将代码检入团队基础服务器中的团队项目中时,它会自动开始为我的应用程序构建,当时我得到例外“ Unknown Compiler”选项lib “下图。

在此输入图像描述

Please tell me how to resolve the above issue. 请告诉我如何解决上述问题。

-Pradeep -Pradeep

I was having this same issue. 我遇到了同样的问题。 I opened the .cproj file and changes the line <TypeScriptToolsVersion>1.8</TypeScriptToolsVersion> 我打开.cproj文件并更改了行<TypeScriptToolsVersion>1.8</TypeScriptToolsVersion>

to

<TypeScriptToolsVersion>2.0</TypeScriptToolsVersion>

and everything worked 一切正常

I had the same issue today after manually installing the latest version of TypeScript for Visual Studio 2015: https://www.microsoft.com/en-us/download/details.aspx?id=48593 . 在为Visual Studio 2015手动安装最新版本的TypeScript后,我今天遇到了同样的问题: https//www.microsoft.com/en-us/download/details.aspx? id = 48593。 To solve this, Go the source folder of your project, which for me is C:\\Users\\\\Documents\\Visual Studio 2015\\Projects\\. 要解决此问题,请转到项目的源文件夹,对我来说是C:\\ Users \\\\ Documents \\ Visual Studio 2015 \\ Projects \\。 Open the file ends with .csproj and changes the line 打开文件以.csproj结尾并更改该行

<TypeScriptToolsVersion>older_version_number</TypeScriptToolsVersion>

to

<TypeScriptToolsVersion>2.9</TypeScriptToolsVersion>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TSConfig 未知编译器选项“lib” - TSConfig Unknown compiler option 'lib' 无法在 VS 2015 中运行 angular 2 应用程序 - could not run an angular 2 application in VS 2015 未知的编译器选项&#39;noStrictGenericChecks&#39; - Unknown compiler option 'noStrictGenericChecks' 未知的编译器选项“noImplicitOverride” - Unknown compiler option 'noImplicitOverride' angular 2提前编译中未知的编译器选项“ angularCompilerOptions” - Unknown compiler option 'angularCompilerOptions' in angular 2 ahead-of-time compilation 使用Visual Studio 2015构建Angular应用程序 - Builiding Angular Application using Visual Studio 2015 将纸包添加到Angular 2应用程序中(VS 2015 Update 3项目) - Add paper package to Angular 2 application (VS 2015 update 3 project) Angular 5 Service读取本地.json文件错误:未知的编译器选项&#39;resolveJsonModule&#39;和&#39;esModuleInterop&#39; - Angular 5 Service to read local .json file Error: Unknown compiler option 'resolveJsonModule' & 'esModuleInterop' 无法使用Angular 2在VS 2015上显示Google地图 - Not able to display google maps on VS 2015 using angular 2 错误 TS2583:找不到名称“地图”。 你需要改变你的目标库吗? 尝试将 `lib` 编译器选项更改为 es2015 或更高版本 - error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM