我正在Windows 10下运行Visual Studio 2015。
我能够成功创建并打开Cordova项目,但是突然有一天我开始收到以下错误消息:
一个等效的项目(一个具有相同全局属性和工具版本的项目)已经存在于项目集合中,其路径为“ {path-to-cordova-project}”。要将等效项加载到此项目集合中,请先卸载此项目。
当我去修改Visual Studio安装时,我可以看到“ HTML / JavaScript(Apache Cordova)”在功能列表中出现了两次:
As you can see, there is a replaced version, and an Update 1. I have tried every combination of uninstalling/installing each of Apache Cordova (Replaced) and (Update 1), and also Tools and Windows SDK 10.0.10240. I also tried deselecting/selecting to reinstall.
I managed to get it working once for creating new projects, but when I opened a project which failed to open before, it started failing again for creation and opening, and haven't been able to get it working again.
I tried completely uninstalling VS 3 times, once using the command G:\vs_professional.exe /uninstall /force
I also tried tried renaming C:\ProgramData\Package Cache folder before installing again.
But it seems to be leaving bytes somewhere, because after reinstalling I can still see the Recent projects, and project templates downloaded before uninstalling.
I am now going to consider formatting the partition and reinstall Windows, but this is very frustrating and disappointing.
I hope someone come up with a solution for this before I proceed to format.
Thanks.
PS: I think the latest thing I installed before this started to happen was ASP.NET 5 Beta 7. But I am not sure if this was the root cause of this problem.
同样的问题(适用于Apache Cordova Update 1的Visual Studio工具+ ASP.NET 5 beta 7)。我通过卸载ASP.NET 5 beta 7(卸载在此处说明)解决了这个问题,并执行了devenv.exe / resetuserdata
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句