Visual Studio 2015 Cordova app wont build and hangs

时间:2015-12-10 01:20:26

标签: cordova visual-studio-2015

I'd done a clean install of windows 8.1, downloaded VS 2015 community update 1. (i've also tried this with VS 2015 Enterprise Edition) I then create a new javascript cordova app. Everything loads up fine. as soon as i start building the project the build process just hangs for many hours.

There are no build errors at all and nothing seems to end. I need to end VS using the task manager to close the project to test again.

This is have tried

1: clearing the cordova cache

2.Running the dependancy checker which returns that everything is ok.

  1. Renaming the CoreCon folder to something else

  2. Checked to see if all the packages are installed in the VS installer.

Once i create a new cordova project then build i get this in the output and it will just hang there for days!!

1>Target "InstallMDA" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets" from project "c:\users\clzby\documents\visual studio 2015\Projects\BlankCordovaApp7\BlankCordovaApp7\BlankCordovaApp7.jsproj" (target "EnsureNodeJsRequirementsAreAtCorrectVersion" depends on it):
1>       Using "RunMdaInstall" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.dll".
1>       Task "RunMdaInstall"

Im now totally lost, i dont understand as to why i install a new product and the build does not work.. Im i missing something?


updates

My current version of node is 4.1.2

current version of cordova is 5.4.1

here is also a link to some microsoft issues

http://taco.visualstudio.com/en-us/docs/known-issues-ripple-cordova/#strongbuild-hangs-or-does-not-execute-when-building-for-ios-with-cordova-lt-533-and-nodejs-400strong

but im still have the same issue where nothing is building in a cordova javascript or typescript project

here is a diagnostic output

1>Target "InstallMDA: (TargetId:11)" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets" from project "c:\users\clzby\documents\visual studio 2015\Projects\BlankCordovaApp15\BlankCordovaApp15\BlankCordovaApp15.jsproj" (target "EnsureNodeJsRequirementsAreAtCorrectVersion" depends on it):
1>                   Using "RunMdaInstall" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.dll".
1>                   Task "RunMdaInstall" (TaskId:10)
1>                     Task Parameter:MdaVsixDir=E:\New folder\Common7\IDE\Extensions\ApacheCordovaTools (TaskId:10)
1>                     Task Parameter:NodeInstallPath=C:\Program Files (x86)\nodejs (TaskId:10)
1>                     Task Parameter:NpmInstallDir=C:\Users\Clzby\AppData\Roaming\npm (TaskId:10)
1>                     Task Parameter:LangName=en-US (TaskId:10)
1>                     Task Parameter:ProjectDir=. (TaskId:10)
1>                     Task Parameter:Configuration=Debug (TaskId:10)
1>                     Task Parameter:PackageName=vs-tac (TaskId:10)
1>                     Task Parameter:BuildVerbosity=Diagnostic (TaskId:10)

1 个答案:

答案 0 :(得分:2)

问题是您的目标是Cordova 5.4.1。使用Visual Studio和Windows,5.4存在许多不兼容性和问题。请将目标CLI更改为5.3.3。

我们的下一次更新将包括对5.4.1的支持,但更新4将无法使用它。

(披露:我在Visual Studio中使用Apache Cordova工具)