Can not install NuGet package

℡╲_俬逩灬. 提交于 2019-11-26 16:51:45

问题


I am trying to add the Unity package to my solution, but I keep receiving the listed message:

Attempting to resolve dependency 'Unity (≥ 3.5.1404.0)'.

'Unity' already has a dependency defined for 'CommonServiceLocator'.

Any Idea how to fix this?


回答1:


This problem arises with older version of nuget. Update nuget PM, 2.8.50313.46 is current version, Look for the latest for VS 2012




回答2:


You are using Higher version .Net framework. And you are adding Lower version of Unity in to it.

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.



来源:https://stackoverflow.com/questions/23286522/can-not-install-nuget-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!