4
votes

After installing the latest CTP 6 of Visual Studio 2015, I don't have the option to create a new Apache Cordova Multi Device project from the templates. Do I need to install something else? I believe I have all the dependencies checked during installation.

Thanks

2

2 Answers

7
votes

This issue will occur if you have installed VS to your non-system drive.

In that case you can workaround it by copying and merging the contents of the "~\Program Files\Microsoft Visual Studio 14.0\Common7\Ide\CommonExtensions\Microsoft\WebClient" folder from the standard install location on the system drive to your custom location, and then running "devenv /setup" from an elevated VS developer command prompt. This bug will be fixed in the next public release.

The issue will also occur if you have upgraded to CTP6 directly from CTP5, without first uninstalling CTP5.

In that case the workaround is:
1. Go to Control Panel, choose Repair on Tools for Apache Cordova MSI. Repair MSI

  1. Verify that C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplates\JavaScript\Apache Cordova Apps\1033\blankCordovaJS is populated.
  2. From elevated developer command prompts run devenv /setup Command prompt

Open VS and your Cordova project template is back.

1
votes

I had the same problem when updating from VS Preview to CTP 5 and again from CTP 5 to CTP 6. To fix the problem I ran the "Modify" option to check Cordova Tools were actually selected (it was) and then the "Repair" option from the VisualStudio CTP setup. Now it workes like a charm.

To open previously created projects I also had to change the import nodes in the *.jsproj file from

$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CordovaTools\vs-mda-targets\...

to

$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.targets