IoC.Configuration 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package IoC.Configuration --version 1.0.3
NuGet\Install-Package IoC.Configuration -Version 1.0.3
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="IoC.Configuration" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IoC.Configuration --version 1.0.3
#r "nuget: IoC.Configuration, 1.0.3"
#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 IoC.Configuration as a Cake Addin
#addin nuget:?package=IoC.Configuration&version=1.0.3

// Install IoC.Configuration as a Cake Tool
#tool nuget:?package=IoC.Configuration&version=1.0.3

Note, the source code of this package can be found at https://github.com/artakhak/IoC.Configuration. There is a test project IoC.Configuration.Tests at this location, demonstrating how to do file and code based configuration of dependency injection (the examples use IoC.Configuration.Autofac.Ninject extensions available in NuGet).

Also, GitHub project has some basic documentation. More documentation will be added soon.

The XML configuration file is validated against schema file IoC.Configuration.Schema.2F7CE7FF-CB22-40B0-9691-EAC689C03A36.xsd, which can be found in folder IoC.Cnfiguration.Content in package directory or at https://github.com/artakhak/IoC.Configuration/tree/master/IoC.Configuration/IoC.Cnfiguration.Content.

A template XML configuration file can also be downloaded from https://github.com/artakhak/IoC.Configuration/tree/master/IoC.Configuration/IoC.Cnfiguration.Content.

Example of service binding in IoC.Configuration module:


Bind<IInterface5>().OnlyIfNotRegistered().To<Interface5_Impl1>().SetResolutionScope(DiResolutionScope.ScopeLifetime);


Example of service binding in XML configuration file:


... <service type='SharedServices.Interfaces.ICleanupJobData' assembly='shared_services'> <implementation type='DynamicallyLoadedAssembly1.Implementations.CleanupJobData' assembly='dynamic1' scope='singleton'> </implementation> </service> ...


Also, both file and code based configurations allow specifying native modules (e.g., instances of Autofac.AutofacModule and Ninject.Modules.NinjectModule).

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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework 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 tizen40 was computed.  tizen60 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.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on IoC.Configuration:

Package Downloads
IoC.Configuration.Autofac

An Autofac extension for IoC.Configuration 2. Detailed documentation on IoC.Configuration is available at http://iocconfiguration.readthedocs.io Look at http://iocconfiguration.readthedocs.io/

IoC.Configuration.Ninject

A Ninject extension for IoC.Configuration 2. Source code can be found at https://github.com/artakhak/IoC.Configuration Detailed documentation on IoC.Configuration is available at http://iocconfiguration.readthedocs.io Look at http://iocconfiguration.readthedocs.io/

IoC.Configuration.Extensions

An extension for IoC.Configuration library at https://www.nuget.org/packages/IoC.Configuration/. Detailed documentation on IoC.Configuration is available at http://iocconfiguration.readthedocs.io.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 1,250 4/10/2022
2.0.2 858 3/17/2019
2.0.1 786 3/17/2019
2.0.0 1,396 2/27/2019
1.0.6 1,118 6/12/2018
1.0.5 1,095 6/11/2018
1.0.4 1,089 6/5/2018
1.0.3 2,233 5/9/2018
1.0.2 1,123 5/9/2018
1.0.1 1,676 4/18/2018
1.0.0 1,212 4/18/2018
1.0.0-beta4 899 4/4/2018
1.0.0-beta3 896 4/2/2018
1.0.0-beta2 1,232 4/1/2018
1.0.0-beta 818 4/1/2018

Fixed some typos in code related to typos in a directory name  in previous version.