GitPedia

Unity

This repository contains all relevant information about Unity Container suit

From unitycontainer·Updated June 21, 2026·View on GitHub·

The Unity Container (Unity) is a full featured, extensible dependency injection container. It facilitates building loosely coupled applications and provides developers with the following advantages: The project is distributed under the Apache License 2.0 license, first published in 2015. It has gained significant community traction with 1,698 stars and 345 forks on GitHub. Key topics include: dependency-injection, interception, ioc, microsoft-practices, unity.

Latest release: 5.11.6.966
April 23, 2020View Changelog →

Overview

The Unity Container (Unity) is a full featured, extensible dependency injection container. It facilitates building loosely coupled applications and provides developers with the following advantages:

  • Simplified object creation, especially for hierarchical object structures and dependencies
  • Abstraction of requirements; this allows developers to specify dependencies at run time or in configuration and simplify management of crosscutting concerns
  • Increased flexibility by deferring component configuration to the container
  • Service location capability; this allows clients to store or cache the container
  • Instance and type interception
  • Registration by convention

Installation

Install Unity with the following command:

shell
Install-Package Unity

Unity 5.x loosely follows Semantic Versioning — minor releases may introduce breaking changes. Floating version references should lock in the minor version in addition to the major version:

xml
<PackageReference Include="Unity.Container" Version="5.x.*" />

Documentation

The documentation is a work in progress. Some info is available here but more is coming...
Feel free to open issues in Documentation project with all the questions you would like to be covered or questions you might have.

Packages & Status

Unity library consists of multiple packages. For information about each package please follow the links


PackageLicenseVersionDownloads
Unity (Composite)LicenseNuGetNuGet
Unity.AbstractionsLicenseNuGetNuGet
Unity.ContainerLicenseNuGetNuGet
Unity.ConfigurationLicenseNuGetNuGet
Unity.InterceptionLicenseNuGetNuGet
Unity.Interception.ConfigurationLicenseNuGetNuGet
Unity.RegistrationByConventionLicenseNuGetNuGet
Unity.log4netLicenseNuGetNuGet
Unity.NLogLicenseNuGetNuGet
Unity.Microsoft.LoggingLicenseNuGetNuGet
Unity.Microsoft.DependencyInjectionLicenseNuGetNuGet
Unity.AspNet.WebApiLicenseNuGetNuGet
Unity.MvcLicenseNuGetNuGet
Unity.WCFLicenseNuGetNuGet
Unity.ServiceLocationLicenseNuGetNuGet
CommonServiceLocatorLicenseNuGetNuGet

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct

Contributing

See the Contributing guide for more information.

.NET Foundation

Unity Container is a .NET Foundation project.

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from unitycontainer/unity via the GitHub API.Last fetched: 6/23/2026