创建/打开 Cordova 项目时,Visual Studio 2015 挂起 [英] Visual Studio 2015 hangs when create/open a Cordova project

查看:30
本文介绍了创建/打开 Cordova 项目时,Visual Studio 2015 挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Visual Studio 2015 通过 Cordova 开发移动应用程序.在升级到 Windows10 之前,我使用的是 Windows 7,它运行得非常好.升级到 Windows10 后,每当我打开 Cordova 项目或创建 Cordova 项目时,Visual Studio 都会挂起(无响应).

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).

我尝试重新安装 Visual Studio,但它仍然挂起.

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

有人遇到过这个问题吗?

Anyone has faced this problem before?

谢谢

推荐答案

这里是 VS 2015 中此问题的解决方案.如果您有 Windows 10 和 VS 2015 中的最新更新,包括最新的类型脚本安装,则会出现此问题.

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) 以管理员身份打开命令提示符.

1) Open command prompt as administrator.

2) 导航到以下文件夹路径:

2) Navigate to the following folder path:

cd "C:ProgramDataPackage Cache"

3) 编写以下命令找出vs_edition.exe文件:

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

dir vs*exe /s /b

4) 从屏幕复制包含您的 vs 版本 exe 的完整路径.

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

5) 编写以下命令:

"C:ProgramDataPackage Cache{GUID}vs_enterprise.exe" /modify /installselectableitems Javascript

6) VS 安装程序将启动,点击修改然后更新.无需更改任何功能选择.

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

7) 等待安装程序完成.

7) Wait until the installer finishes.

8) 在命令提示符下,导航到以下文件夹:

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

C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDE

C:Program Files (x86)Microsoft Visual Studio 14.0Common7IDE

9) 运行以下命令:

devenv /updateconfiguration

devenv /clearcache

下面的屏幕截图显示了完整的命令集.

Below screenshot shows the full commands set.

现在,您将能够打开 VS 2015 并创建cordova 应用程序.

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

这篇关于创建/打开 Cordova 项目时,Visual Studio 2015 挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆