本文介绍了无法为Windows Phone 8.1应用程序项目安装MvvmLight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows Phone 8.1项目(Visual Studio 2013)上安装MvvmLight,但始终收到此错误消息:

I'm trying to install MvvmLight on my Windows Phone 8.1 project (Visual Studio 2013) but keep getting this error message:

包装说明如下:

有什么作用?作为背景,我之前安装了MVVM Light软件包(4.2.30.0)并卸载了它,因为它没有添加任何引用.它保留了View Model定位器.

What gives? As background, I previously installed the MVVM Light package (4.2.30.0) and the uninstalled it because it didn't add any references. It kept the View Model locators around.

推荐答案

如果您使用的是NuGet的旧版本,则会发生这种情况.更新NuGet后,问题就消失了.

This happens if you are using an older version of NuGet. Once I updated NuGet, the problem went away.

这篇关于无法为Windows Phone 8.1应用程序项目安装MvvmLight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 19:03