gpt4 book ai didi

nuget - 无法通过 NuGet 添加 MVVM Light 库

转载 作者:行者123 更新时间:2023-12-04 21:57:43 24 4
gpt4 key购买 nike

我正在尝试通过 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。有任何想法吗?最近两周前我还没有遇到这个问题。

最佳答案

今天有同样的问题。首先尝试在 Visual Studio Addins 中安装最新版本的 Nuget!

关于nuget - 无法通过 NuGet 添加 MVVM Light 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23040581/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com