Where is the Microsoft.Practices.Unity package located?

An hour ago, I updated my nuget packages for the solution I'm working on and get an error message issued by Unity which

The type "IUnityContainer" is defined in an assembly that is not a reference. You must add a link to the assembly 'Microsoft.Practices.Unity, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 6d32ff45e0ccc69f ".

Since then I have been searching for searches to get useful information about this where this package is located. Articles, the question around him is old, deals with version 2.x.

Nuget does not have such a package.

I have the following packages from the Unity stack:

<package id="Unity" version="4.0.2" targetFramework="net452" /> <package id="Unity.ServiceLocator" version="2.0.0" targetFramework="net452" /> <package id="Unity.WebAPI" version="5.2.3" targetFramework="net452" /> 

Any help is appreciated!

+6
source share
3 answers

After adding nuget with

 Install-Package Unity 

he is in

 packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.dll 

You probably just need to add a link to this assembly.

+9
source

I had to change

 using Microsoft.Practices.unity; 

to

 using Unity; 

I think due to upgrade in Unity with NuGet

+5
source

Update Unity with Nuget. Instead of the command line, I use the NuGet package manager. Access Manager, right-clicking a solution in Solution Explorer from Visual Studion

0
source

All Articles