Unity 5.0.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Unity --version 5.0.0
NuGet\Install-Package Unity -Version 5.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Unity" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Unity --version 5.0.0
#r "nuget: Unity, 5.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Unity as a Cake Addin
#addin nuget:?package=Unity&version=5.0.0

// Install Unity as a Cake Tool
#tool nuget:?package=Unity&version=5.0.0

Release 5.0.0

After few years of inactivity we are finally updating Unity library. The main goal of this release was to preserve compatibility with previous distribution v4.0.1 as much as possible. Unfortunately loss of original signing key prevented creation of compatible assemblies. To eliminate conflicts assembly names and namespaces were changed. The Unity Container has been split into following assemblies:

  • Unity.Abstractions.2.0.0
  • Unity.Container.5.0.0
  • Unity.ServiceLocation.2.0.0
  • CommonServiceLocator.2.0.1

Each of these is available as individual package but Abstractions and Container also distributed as library via Unity.5.0.0 package.

All 1220 tests from previous release are still passing.

New features

  • Unity container no longer references CommonServiceLocator
  • Added support for .NET 4.0, 4.5, 4.7, .NET Core 1.0+ and .NET Standard 1.0+ where available.
  • Container internally uses ConcurrentDictionary to improve multi threading
  • Added DelegateInjectionFactory which allows free form delegate to serve as Injection Factory
  • Added support for IEnumerable<T> resolution
  • Registration speed increased about one order of magnitude See data

Breaking changes

  • Unity has been split into Unity.Abstractions and Unity.Container
  • Moved ServiceLocation functionality into separate package Unity.ServiceLocation
  • Interface IBuilderContext now has reference to IUnityContainer. This change was required to speed up dependency resoluton.
  • TearDown has been removed from IUnityContainer
  • ResolveAll has been converted to Extension method
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 was computed.  netstandard1.2 was computed.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wp8 was computed.  wp81 was computed.  wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (658)

Showing the top 5 NuGet packages that depend on Unity:

Package Downloads
Unity.WebAPI

Unity.WebAPI allows the simple Integration of the Unity IoC container with ASP.NET Web API.

Unity.Mvc5

Unity.Mvc5 allows the simple integration of the Unity IoC container with ASP.NET MVC 5.

AutoMoq

Auto-mocking container

Omnicx.WebStore.Core

OmniCX WebStore Core contains the Controllers, API SDK and Models required to run the MVC Views of the WebStore.

Unity.Mvc4

Unity.Mvc4 is a library that allows simple Integration of Microsoft's Unity IoC container with ASP.NET MVC 4. A copy of Unity.MVC3 except it references MVC4

GitHub repositories (74)

Showing the top 5 popular GitHub repositories that depend on Unity:

Repository Stars
unoplatform/uno
Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
MichaCo/CacheManager
CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
angularsen/UnitsNet
Makes life working with units of measurement just a little bit better.
jakubgarfield/Bonobo-Git-Server
Bonobo Git Server for Windows is a web application you can install on your IIS and easily manage and connect to your git repositories. Go to homepage for release and more info.
digimezzo/dopamine-windows
Audio player which tries to make organizing and listening to music as simple and pretty as possible.
Version Downloads Last updated
5.11.10 8,159,406 1/29/2021
5.11.9 1,084,281 11/23/2020
5.11.8 55,754 11/23/2020
5.11.7 2,949,443 5/25/2020
5.11.6 559,018 4/23/2020
5.11.5 321,410 4/2/2020
5.11.4 839,236 2/24/2020
5.11.3 1,156,440 1/6/2020
5.11.2 550,059 12/6/2019
5.11.1 3,676,807 6/20/2019
5.10.3 1,265,331 4/4/2019
5.10.2 262,438 3/23/2019
5.10.1 95,167 3/19/2019
5.10.0 105,819 3/18/2019
5.9.8 65,861 3/17/2019
5.9.7 413,620 3/4/2019
5.9.6 33,555 3/2/2019
5.9.5 199,550 2/18/2019
5.9.4 95,218 2/9/2019
5.9.3 796,584 1/30/2019
5.9.2 80,189 1/25/2019
5.9.1 19,568 1/24/2019
5.9.0 110,863 1/23/2019
5.9.0-RC1 16,032 1/21/2019
5.9.0-RC 2,878 1/14/2019
5.8.13 1,147,257 12/7/2018
5.8.12 99,100 12/4/2018
5.8.11 2,429,102 9/1/2018
5.8.10 258,837 8/27/2018
5.8.9 21,101 8/25/2018
5.8.8 11,721 8/24/2018
5.8.7 152,173 8/22/2018
5.8.6 2,591,974 4/19/2018
5.8.5 288,114 4/6/2018
5.8.4 63,337 3/31/2018
5.8.3 11,202 3/30/2018
5.8.2 8,563 3/30/2018
5.8.1 40,201 3/28/2018
5.8.0 84,097 3/27/2018
5.7.3 507,795 3/3/2018
5.7.2 15,512 3/3/2018
5.7.1 18,933 3/2/2018
5.7.0 39,127 3/1/2018
5.6.1 187,102 2/22/2018
5.6.0 205,176 2/13/2018
5.5.8 60,708 2/9/2018
5.5.6 289,108 1/23/2018
5.5.5 337,375 1/11/2018
5.5.4 137,740 1/3/2018
5.5.3 15,294 1/3/2018
5.5.2 20,377 12/30/2017
5.5.1 15,565 12/30/2017
5.5.0 143,227 12/20/2017
5.4.0 66,521 12/18/2017
5.3.2 284,500 12/2/2017
5.3.1 828,817 11/21/2017
5.3.0 44,229 11/19/2017
5.2.1 133,028 11/15/2017
5.2.0 807,386 11/12/2017
5.1.2 276,418 10/30/2017
5.1.0 25,061 10/29/2017
5.0.2 56,544 10/25/2017
5.0.1 50,244 10/23/2017
5.0.0 123,938 10/19/2017
4.0.1 20,272,586 10/6/2015
3.5.1405-prerelease 168,518 5/15/2014
3.5.1404 7,789,743 4/22/2014
3.0.1304.1 2,518,124 8/29/2013
3.0.1304 721,626 4/26/2013
3.0.1208-Preview 22,134 8/10/2012
2.1.505.2 5,583,597 8/2/2012
2.1.505 4,649,762 5/11/2011
2.0.0 1,238,168 5/5/2011
1.0.0-beta 7,405 12/2/2015

Entire Unity Library as single package.