DependencyResolver.NET 1.0.62-pre

This is a prerelease version of DependencyResolver.NET.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package DependencyResolver.NET --version 1.0.62-pre
                    
NuGet\Install-Package DependencyResolver.NET -Version 1.0.62-pre
                    
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="DependencyResolver.NET" Version="1.0.62-pre" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DependencyResolver.NET" Version="1.0.62-pre" />
                    
Directory.Packages.props
<PackageReference Include="DependencyResolver.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DependencyResolver.NET --version 1.0.62-pre
                    
#r "nuget: DependencyResolver.NET, 1.0.62-pre"
                    
#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.
#addin nuget:?package=DependencyResolver.NET&version=1.0.62-pre&prerelease
                    
Install DependencyResolver.NET as a Cake Addin
#tool nuget:?package=DependencyResolver.NET&version=1.0.62-pre&prerelease
                    
Install DependencyResolver.NET as a Cake Tool

DependencyResolver

A simple dependency injection framework to demonstrate the core functionality such as registration and resolving of dependency trees.

Download and Install DependencyResolver

This library is available on NuGet: https://www.nuget.org/packages/DependencyResolver.NET Use the following command to install DependencyResolver.NET using NuGet package manager console:

PM> Install-Package DependencyResolver.NET

You can use this library in any .NET project which is compatible to .NET Framework 4.5, .NET Standard 2.0 and higher.

How it use DependencyResolver

The DependencyResolver provides two basic methods: Register and Resolve. Register allows to map abstractions to implementations at bootstrap time of an application. These registrations are sometimes also called services, service mappings or dependencies. Later, at runtime of the application, the Resolve method is used to create instances for the registered services.

// Create a new dependency injection container
var resolver = new Resolver();

// Register dependencies
resolver.Register<ILogger, ConsoleLogger>();
resolver.Register<IPaymentService, PaymentService>();
resolver.Register<IPaymentServiceConfiguration, PaymentServiceConfiguration>();

// Resolve dependencies
var paymentService = resolver.Resolve<IPaymentService>();
paymentService.Charge(99m, new MasterCard());

Disclaimer

Do not use DependencyResolver in production code!<br/>Use one of the well-known DI frameworks instead: Autofac, Unity, Ninject.

Original Source & Credits<br/> http://www.pashov.net/code/dependency-injection-hood/

Autofac<br/> https://autofac.org/

Unity Container<br/> https://github.com/unitycontainer

Ninject<br/> http://www.ninject.org/

Dependency Injection in ASP.NET Core<br/> https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-2.2

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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 is compatible.  netstandard2.1 is compatible. 
.NET Framework net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  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.
  • .NETStandard 1.0

  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.63-pre 0 4/1/2025
1.0.62-pre 116 3/16/2025
1.0.60 89 3/1/2025
1.0.58-pre 76 3/1/2025
1.0.51-pre 88 1/1/2025
1.0.50-pre 83 12/1/2024
1.0.49-pre 79 11/1/2024
1.0.48-pre 83 10/1/2024
1.0.47-pre 94 9/1/2024
1.0.46-pre 86 8/1/2024
1.0.45-pre 106 7/1/2024
1.0.44-pre 96 6/1/2024
1.0.43-pre 108 5/1/2024
1.0.42-pre 113 4/1/2024
1.0.41-pre 122 3/1/2024
1.0.40-pre 125 2/1/2024
1.0.39-pre 168 1/1/2024
1.0.38-pre 149 12/1/2023
1.0.37-pre 131 11/1/2023
1.0.35-pre 105 10/1/2023
1.0.34 212 9/17/2023
1.0.32-pre 122 9/17/2023
1.0.30-pre 109 9/5/2023
1.0.25 508 9/22/2022
1.0.23-pre 201 9/16/2022
1.0.22-pre 190 9/16/2022
1.0.21 442 9/8/2022
1.0.19-pre 191 9/8/2022
1.0.17-pre 198 9/8/2022
1.0.15-pre 216 1/9/2022
1.0.14-pre 213 1/9/2022
1.0.13 18,549 11/24/2021
1.0.11-pre 5,127 11/24/2021
1.0.9-pre 4,915 11/24/2021
1.0.8-pre 4,946 11/24/2021
1.0.7 5,675 11/23/2021
1.0.5-pre 5,596 11/23/2021
1.0.4-pre 213 11/23/2021

1.0.0
- Initial release