Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while downloading Unity IoC container from Nuget

I am building a console application for the sake of Inversion of control. I have tried to download "Unity" IoC container from nuget package manager, but got this error. Any help is useful. I am using visual studio 2010 pro.

error while downloading package

like image 389
choudhury smrutiranjan parida Avatar asked Sep 04 '13 13:09

choudhury smrutiranjan parida


People also ask

Is Unity IoC container?

Unity is an IoC container released by Microsoft and is very simple, flexible and easy to use. Though there are many IoC containers available in the market much stronger than Unity, for simplicity and to understand the basic concepts, it's one of the best choices.

What is IoC unity?

Unity Inversion of Control (Unity IoC) Inversion of Control (IoC) is a concept stating that aggregated system modules should not depend on implementation of subordinate modules. Instead, a separate module-container stores abstraction-implementation couple and manages the lifetime of these implementations.

What is NuGet unity?

NuGetForUnity is a NuGet client built from scratch to run inside the Unity Editor. NuGet is a package management system which makes it easy to create packages that are distributed on a server and consumed by users. NuGet supports sematic versioning for packages as well as dependencies on other packages.


1 Answers

It looks like you are using .NET Framework 4 and trying to add Unity 3. In the documentation of Unity 3 it says:

System Requirements Supported architectures: x86 and x64.

Operating systems: Microsoft Windows 8, Microsoft Windows 7, Windows Server 2008 R2, Windows Server 2012.

.NET Framework: Microsoft .NET Framework 4.5, .NET for Windows Store Apps (previously known as Windows Runtime)

To use Unity in .NET 4 you need to use this package instead:

Install-Package Unity -Version 2.1.505.2
like image 137
margabit Avatar answered Sep 19 '22 02:09

margabit