【发布时间】:2014-04-13 08:31:48
【问题描述】:
我正在尝试通过 NuGet 将 MVVM Light 添加到现有项目,但收到以下错误消息:
Attempting to resolve dependency 'MvvmLightLibs (≥ 4.2.30.0)'.
Attempting to resolve dependency 'CommonServiceLocator (≥ 1.2)'.
Successfully installed 'CommonServiceLocator 1.2'.
Successfully installed 'MvvmLightLibs 4.3.31.1'.
Successfully installed 'MvvmLight 4.2.30.0'.
Successfully uninstalled 'CommonServiceLocator 1.2'.
Install failed. Rolling back...
Could not install package 'CommonServiceLocator 1.2'. You are
trying to install this package into a project that targets
'.NETFramework,Version=v4.0,Profile=Client', but the package
does not contain any assembly references that are compatible
with that framework. For more information, contact the package
author.
我尝试将我的项目重新定位到 .NET Framework 4.0、4.0 客户端配置文件和 4.5。有任何想法吗?两周前我还没有遇到过这个问题。
【问题讨论】:
标签: nuget mvvm-light