Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Microsoft.Practices.Unity package?

Tags:

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

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

Since then I have been googling to get some usable information about that where this package is. The articles, question around it are old, deals with 2.x version.

There is no such package in Nuget.

I have the packages listed below from Unity stack installed:

  <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!

like image 398
AndrasCsanyi Avatar asked Feb 27 '16 18:02

AndrasCsanyi


1 Answers

I had to change

using Microsoft.Practices.unity; 

to

using Unity; 

I think because of an update in Unity with NuGet

like image 95
Alvaro Rodriguez Scelza Avatar answered Sep 20 '22 13:09

Alvaro Rodriguez Scelza