2

Closed

NuGet: Could not install package 'Unity 3.0.1304.0'.

description

"Could not install package 'Unity 3.0.1304.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."

What am I doing wrong? The help file says it supports .Net 4 & VS2010?
Closed Mar 13 at 1:14 AM by bennage

comments

randylevy wrote May 16, 2013 at 4:27 PM

Unity 3 requires .NET 4.5. From the Release Notes:
Supported .NET Frameworks: Microsoft .NET Framework 4.5, .NET for Windows Store Apps (previously known as WinRT).
Where did you see the requirement for .NET 4 (so we can fix it up)?

~~
Randy Levy
entlib.support@live.com
Enterprise Library support engineer
Support How-to

ben555 wrote May 22, 2013 at 11:38 AM

The NuGet package doesn't list and dependencies. Handy if it said .Net 4.5 was a requirement.

amirkarimi wrote Jun 12, 2013 at 4:13 PM

So how can I install previous version of unity using NuGet on my .NET 4 app?

randylevy wrote Jun 12, 2013 at 4:39 PM

You can use NuGet to install Unity 2.1: http://www.nuget.org/packages/Unity/2.1.505.2 .

From the Package Manager Console:
Install-Package Unity -Version 2.1.505.2

amirkarimi wrote Jun 12, 2013 at 6:52 PM

@randylevy - Thank you