简体   繁体   English

无法安装NuGet包

[英]Can not install NuGet package

I am trying to add the Unity package to my solution, but I keep receiving the listed message: 我正在尝试将Unity包添加到我的解决方案中,但我一直收到列出的消息:

Attempting to resolve dependency 'Unity (≥ 3.5.1404.0)'. 试图解决依赖'Unity(≥3.5.1404.0)'。

'Unity' already has a dependency defined for 'CommonServiceLocator'. 'Unity'已经为'CommonServiceLocator'定义了依赖关系。

Any Idea how to fix this? 任何想法如何解决这个问题?

This problem arises with older version of nuget. 这个问题出现在旧版本的nuget上。 Update nuget PM, 2.8.50313.46 is current version, Look for the latest for VS 2012 更新nuget PM,2.8.50313.46是最新版本,查找VS 2012的最新版本

You are using Higher version .Net framework. 您正在使用更高版本的.Net框架。 And you are adding Lower version of Unity in to it. 而且你正在添加更低版本的Unity。

your Application Framework will be above 4.0 or 4.0 and you are adding Unity frame work which is of .net frame 3.5. 您的应用程序框架将高于4.0或4.0,并且您正在添加.net框架3.5的Unity框架工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM