Error loading Unity IoC container from Nuget

I am creating a console application to invert a control. I tried loading the "Iity" IoC container from the nuget package manager, but got this error. Any help is helpful. I am using visual studio 2010 pro.

error while downloading package

+7
c # unity-container nuget
source share
2 answers

It looks like you are using the .NET Framework 4 and trying to add Unity 3. The Unity 3 documentation 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 Applications (formerly known as Windows Runtime)

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

Install-Package Unity -Version 2.1.505.2 
+22
source share

From unity.codeplex.com .

System requirements Supported architectures: x86, x64, ARM. operating systems: Microsoft Windows® 8, Microsoft Windows® 7, Windows Server 2008 R2, Windows Server 2012, Windows Phone 8. Supported .NET Framework: Microsoft.NET Framework 4.5 , .NET for Windows Store applications (formerly known as WinRT), .NET for Windows Phone. Rich development environment: Microsoft Visual Studio 2012, Professional, Ultimate or Express Editions.

So use the older version.

+1
source share

All Articles