LightweightIocContainer.FactoryGenerator 5.0.0-beta5

This is a prerelease version of LightweightIocContainer.FactoryGenerator.
dotnet add package LightweightIocContainer.FactoryGenerator --version 5.0.0-beta5
                    
NuGet\Install-Package LightweightIocContainer.FactoryGenerator -Version 5.0.0-beta5
                    
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="LightweightIocContainer.FactoryGenerator" Version="5.0.0-beta5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LightweightIocContainer.FactoryGenerator" Version="5.0.0-beta5" />
                    
Directory.Packages.props
<PackageReference Include="LightweightIocContainer.FactoryGenerator" />
                    
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 LightweightIocContainer.FactoryGenerator --version 5.0.0-beta5
                    
#r "nuget: LightweightIocContainer.FactoryGenerator, 5.0.0-beta5"
                    
#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.
#:package LightweightIocContainer.FactoryGenerator@5.0.0-beta5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LightweightIocContainer.FactoryGenerator&version=5.0.0-beta5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=LightweightIocContainer.FactoryGenerator&version=5.0.0-beta5&prerelease
                    
Install as a Cake Tool

Get started with the Lightweight IOC Container Factory Generator

How to install

The easiest way to install the Lightweight IOC Container is by using NuGet through the .NET CLI:

> dotnet add package LightweightIocContainer.FactoryGenerator --version 5.0.0

Example usage

When registering an interface you can use the WithGeneratedFactory<>() method to generate a factory for the registered type:

public class SampleInstaller : IIocInstaller
{
    public void Install(IRegistrationCollector registration)
    {
        registration.Add<ISampleClass, SampleClass>().WithGeneratedFactory<ISampleClassFactory>();
    }
}
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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
5.0.0-beta5 40 12/10/2025
5.0.0-beta4 120 12/5/2025
5.0.0-beta3 120 12/5/2025
5.0.0-beta2 142 12/4/2025
5.0.0-beta 135 12/4/2025