将以下“Angular 2”依赖项添加到MVC wwwroot文件夹后 (从“node_modules”复制到“wwwroot / lib / ng2”)
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/compiler-cli": "0.5.0",
"@angular/core": "2.0.0-rc.5",
"@angular/forms": "0.3.0",
"@angular/http": "2.0.0-rc.5",
"@angular/platform-browser": "2.0.0-rc.5",
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
"@angular/router": "3.0.0-rc.1",
"@angular/upgrade": "2.0.0-rc.5",
"core-js": "^2.4.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.27",
"zone.js": "^0.6.12",
"angular2-in-memory-web-api": "0.0.17",
尝试重建项目时出现以下错误
错误MSB6006“tsc.exe”退出,代码为1. Project.Name“C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ TypeScript \ Microsoft.TypeScript.targets”214
答案 0 :(得分:0)
当我删除文件夹“wwwroot / lib / ng2 / @ angular / compiler-cli”时,项目编译成功。但我还不知道这是否会影响angular2的开发?