Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 hangs when create/open a Cordova project

Tags:

I used Visual Studio 2015 to develop mobile app with Cordova. Before I upgraded to Windows10, I was using Windows 7 and it worked perfectly fine. After I've upgraded to Windows10, whenever I open a Cordova project or create a Cordova project the Visual Studio hangs (not responding).

I have tried to reinstall the Visual Studio but it still hangs.

Anyone has faced this problem before?

Thanks

like image 935
clho Avatar asked Aug 02 '15 11:08

clho


People also ask

How do I open Cordova project in Visual Studio?

Open the Project in Visual Studio CodeClick on the debug icon in the sidebar or CMD+SHIFT+D , then click on the gear icon next to the debug button in the upper left side and select Cordova.

Does Visual Studio support Cordova?

You can use the Cordova Tools for Visual Studio Code extension (which provides support for the latest version of Cordova) or continue using Visual Studio 2017.

Does Visual Studio 2019 support Cordova?

With our Cordova Tools Extension for Visual Studio Code, you can use your existing web skills to build cross-platform hybrid mobile applications for iOS, Android, and other platforms. This means that you can create and maintain one project to target millions of potential customers using various mobile devices.


1 Answers

Here is the solution for this problem in VS 2015. This issue if you have Windows 10 and latest updates in VS 2015 including latest type script installation.

1) Open command prompt as administrator.

2) Navigate to the following folder path:

cd "C:\ProgramData\Package Cache"

3) write the following command to find out vs_edition.exe file:

dir vs*exe /s /b

4) copy the full path that contains your vs edition exe from the screen.

5) write the following command:

"C:\ProgramData\Package Cache\{GUID}\vs_enterprise.exe" /modify /installselectableitems Javascript

6) VS installer will start, click on modify and then update. no need to change any features selection.

7) Wait until the installer finishes.

8) From the command prompt, navigate to the following folder:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

9) Run the following commands:

devenv /updateconfiguration

devenv /clearcache

Below screenshot shows the full commands set.

enter image description here

Now, you will be able to open VS 2015 and create cordova apps.

like image 157
Mostafa Avatar answered Oct 09 '22 06:10

Mostafa