1

我在 TFS 上构建 Cordova (TACO) 时遇到问题。Apache Cordova 的工具安装在 TFS 服务器上,似乎它们已被识别,但是,我得到以下构建输出。

Build started 1/5/2016 11:00:40 AM.
 1>Project "D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject.sln" on node 1 (default targets).
 1>ValidateSolutionConfiguration:
     Building solution configuration "Debug|Android".
 1>Project "D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject.sln" (1) is building "D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj" (2) on node 1 (default targets).
 2>PreComputeCompileTypeScript:
     C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.7\tsc.exe COMPUTE_PATHS_ONLY
   CompileTypeScript:
     C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.7\tsc.exe 
 2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(287,5): error MSB4044: The "RunMdaInstall" task was not given a value for the required parameter "MdaVsixDir". [D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj]
 2>Done Building Project "D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj" (default targets) -- FAILED.
 1>Done Building Project "D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject.sln" (default targets) -- FAILED.

Build FAILED.

   "D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject.sln" (default target) (1) ->
   "D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj" (default target) (2) ->
   (InstallMDA target) -> 
     C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(287,5): error MSB4044: The "RunMdaInstall" task was not given a value for the required parameter "MdaVsixDir". [D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.26

具体错误是:

错误 MSB4044:未为“RunMdaInstall”任务指定所需参数“MdaVsixDir”的值。[D:\Builds\22\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj

如何解决此错误?

4

1 回答 1

1

原来我使用的是旧版本的科尔多瓦工具,需要我设置环境变量,如下所示 - http://taco.visualstudio.com/en-us/docs/tfs2013/

于 2016-01-12T22:34:02.510 回答