尝试构建 cordova 项目时,RunMdaInstall 任务未为所需参数“MdaVsixDir”提供值

RunMdaInstall task not given value for required parameter 'MdaVsixDir" while trying to build a cordova project

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

Build started 1/5/2016 11:00:40 AM.
 1>Project "D:\Builds\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject.sln" on node 1 (default targets).
 1>ValidateSolutionConfiguration:
     Building solution configuration "Debug|Android".
 1>Project "D:\Builds\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject.sln" (1) is building "D:\Builds\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj" (2) on node 1 (default targets).
 2>PreComputeCompileTypeScript:
     C:\Program Files (x86)\Microsoft SDKs\TypeScript.7\tsc.exe COMPUTE_PATHS_ONLY
   CompileTypeScript:
     C:\Program Files (x86)\Microsoft SDKs\TypeScript.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\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj]
 2>Done Building Project "D:\Builds\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj" (default targets) -- FAILED.
 1>Done Building Project "D:\Builds\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject.sln" (default targets) -- FAILED.

Build FAILED.

   "D:\Builds\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject.sln" (default target) (1) ->
   "D:\Builds\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\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.26

具体错误为:

error MSB4044: The "RunMdaInstall" task was not given a value for the required parameter "MdaVsixDir". [D:\Builds\Cordova\MyProject\src\Cordova\Mainline\MyProject\MyProject\MyProject.jsproj

如何解决这个错误?

原来我使用的是旧版本的 cordova 工具,它要求我设置此处所示的环境变量 - http://taco.visualstudio.com/en-us/docs/tfs2013/