Problem installing unity with Nuget (not compatible with any project in the solution)

May 16, 2013 at 12:52 PM
Hi!
I have a VS 2012 solution with .net 4.0 project. I'm trying to install unity using nuget and I get the following error:

'Unity' could not be installed because it is not compatible with any project in the solution. The package targets the following frameworks:
.NETFramework,Version=v4.5
.NETCore,Version=v4.5

Any ideas?
How can I download the Unity binaries without using nuget?
May 16, 2013 at 4:04 PM
Edited May 16, 2013 at 4:04 PM
You can also get Unity 2.1 (for .NET 4.0) via NuGet:

To install Unity 2.1, run the following command in the Package Manager Console:
PM> Install-Package Unity -Version 2.1.505.2
If you don't have access to NuGet you can get Unity 2.1 here.

~~
Randy Levy
entlib.support@live.com
Enterprise Library support engineer
Support How-to
May 16, 2013 at 5:06 PM
Thanks, that worked.
However I'm sure what happened.
I didn't specify that I want .net 4 version.
Does it mean that unity 2.1.505.2 is for .net?
Is there a newer one for .net 4.5?
May 16, 2013 at 5:15 PM
The recently released Unity 3 requires .NET 4.5 while Unity 2.1 requires Microsoft .NET Framework 3.5 with Service Pack 1 or Microsoft .NET Framework 4.0.

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