遵循mvvmcross教程:http://www.youtube.com/watch?v=_DHDMNB_IeY&list=PLR6WI6W1JdeYSXLbm58jwAKYT7RQR31-W&index=1
我按照此处的说明设置了我的PCL xml文件以包含MonoTouch和Mono for Android:http://slodge.blogspot.co.uk/2013/04/my-current-pcl-setup-in-visual-studio.html
如果我尝试使用nuget,我会收到一个错误,即已经添加了具有相同键的项目:
我可以在解决方案中添加其他项目类型,NuGet工作正常,这是PCL项目特有的。这是控制台输出:
PM> Install-Package MvvmCross.HotTuna.StarterPack
Attempting to resolve dependency 'MvvmCross.HotTuna.CrossCore (≥ 3.0.8.1)'.
Attempting to resolve dependency 'MvvmCross.PortableSupport (≥ 3.0.8.1)'.
Installing 'MvvmCross.PortableSupport 3.0.8.1'.
Successfully installed 'MvvmCross.PortableSupport 3.0.8.1'.
Installing 'MvvmCross.HotTuna.CrossCore 3.0.8.1'.
Successfully installed 'MvvmCross.HotTuna.CrossCore 3.0.8.1'.
Installing 'MvvmCross.HotTuna.StarterPack 3.0.8.1'.
Successfully installed 'MvvmCross.HotTuna.StarterPack 3.0.8.1'.
Adding 'MvvmCross.PortableSupport 3.0.8.1' to BLUBCNMOBL.Core.
Uninstalling 'MvvmCross.PortableSupport 3.0.8.1'.
Successfully uninstalled 'MvvmCross.PortableSupport 3.0.8.1'.
Install failed. Rolling back...
Install-Package : An item with the same key has already been added.
At line:1 char:1
Microsoft Visual Studio Premium 2012(版本11.0.60315.01更新2) Nuget v 2.5
答案 0 :(得分:0)
我的猜测是你在复制和粘贴过程中添加了一个git snafu的XML文件。
尝试删除您添加的内容并尝试重新添加。
或者,可能是其他人添加了冲突的文件?例如,xamarin最近添加了pcl支持,所以也许他们已经添加了文件?
要尝试收集更多信息,您可以尝试使用nuget命令行 - 这会为您提供更多诊断信息。