Myth.DependencyInjection 3.0.0-preview

This is a prerelease version of Myth.DependencyInjection.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Myth.DependencyInjection --version 3.0.0-preview
                    
NuGet\Install-Package Myth.DependencyInjection -Version 3.0.0-preview
                    
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="Myth.DependencyInjection" Version="3.0.0-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Myth.DependencyInjection" Version="3.0.0-preview" />
                    
Directory.Packages.props
<PackageReference Include="Myth.DependencyInjection" />
                    
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 Myth.DependencyInjection --version 3.0.0-preview
                    
#r "nuget: Myth.DependencyInjection, 3.0.0-preview"
                    
#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 Myth.DependencyInjection@3.0.0-preview
                    
#: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=Myth.DependencyInjection&version=3.0.0-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Myth.DependencyInjection&version=3.0.0-preview&prerelease
                    
Install as a Cake Tool

Myth.DependencyInjection

NuGet Version NuGet Version

License

pt-br en

It is a .NET library for working with dependency injection, types and assemblies.

⭐ Features

  • Loading application assemblies
  • Find application types
  • Find types from an interface
  • Inject services from an interface automatically

🔮 Usage

To inject all types that implement an interface use the following code.

services.AddServiceFromType<IMyInterface>();

To use application-defined types or assemblies, use the type provider:

TypeProvider.ApplicationAssemblies // Shows all application assemblies
TypeProvider.ApplicationTypes // Shows all application types
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Myth.DependencyInjection:

Package Downloads
Myth.Repository.EntityFramework

Entity Framework Core implementations of repository pattern with Unit of Work, specification support, expression handling, and transaction management for robust data access with EF Core.

Harpy.IoC

Basis for the ioc layer of the Harpy Framework

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.1.0 104 11/27/2025
4.1.0-preview.3 109 11/27/2025
4.1.0-preview.2 105 11/27/2025
4.1.0-preview.1 111 11/26/2025
4.0.1 161 11/22/2025
4.0.1-preview.8 140 11/22/2025
4.0.1-preview.7 143 11/22/2025
4.0.1-preview.6 128 11/22/2025
4.0.1-preview.5 192 11/21/2025
4.0.1-preview.4 203 11/21/2025
4.0.1-preview.3 205 11/21/2025
4.0.1-preview.2 227 11/21/2025
4.0.1-preview.1 238 11/21/2025
4.0.0 385 11/20/2025
4.0.0-preview.3 339 11/19/2025
4.0.0-preview.2 81 11/15/2025
4.0.0-preview.1 107 11/15/2025
3.10.0 166 11/15/2025
3.0.5-preview.15 144 11/14/2025
3.0.5-preview.14 215 11/12/2025
3.0.5-preview.13 222 11/12/2025
3.0.5-preview.12 219 11/11/2025
3.0.5-preview.11 217 11/11/2025
3.0.5-preview.10 218 11/11/2025
3.0.5-preview.9 211 11/10/2025
3.0.5-preview.8 83 11/8/2025
3.0.5-preview.7 81 11/8/2025
3.0.5-preview.6 83 11/8/2025
3.0.5-preview.5 84 11/8/2025
3.0.5-preview.4 54 11/7/2025
3.0.5-preview.3 131 11/4/2025
3.0.5-preview.2 129 11/4/2025
3.0.5-preview.1 130 11/4/2025
3.0.4 212 11/3/2025
3.0.4-preview.19 73 11/2/2025
3.0.4-preview.18 68 11/1/2025
3.0.4-preview.17 70 11/1/2025
3.0.4-preview.16 72 11/1/2025
3.0.4-preview.15 66 10/31/2025
3.0.4-preview.14 133 10/31/2025
3.0.4-preview.13 132 10/30/2025
3.0.4-preview.12 127 10/23/2025
3.0.4-preview.11 121 10/23/2025
3.0.4-preview.10 122 10/23/2025
3.0.4-preview.9 120 10/23/2025
3.0.4-preview.8 114 10/22/2025
3.0.4-preview.6 114 10/21/2025
3.0.4-preview.5 114 10/21/2025
3.0.4-preview.4 120 10/20/2025
3.0.4-preview.3 119 10/20/2025
3.0.4-preview.2 41 10/18/2025
3.0.4-preview.1 127 10/7/2025
3.0.3 225 8/30/2025
3.0.2 120 8/23/2025
3.0.2-preview.4 124 8/21/2025
3.0.2-preview.3 104 8/16/2025
3.0.2-preview.1 73 5/23/2025
3.0.1 239 3/12/2025
3.0.1-preview.2 148 3/11/2025
3.0.1-preview.1 94 2/5/2025
3.0.0.2-preview 141 12/10/2024
3.0.0.1-preview 170 6/29/2024
3.0.0 182 12/10/2024
3.0.0-preview 167 6/28/2024
2.0.0.16 300 12/15/2023
2.0.0.15 199 12/15/2023
2.0.0.11 1,362 8/11/2022
2.0.0.10 1,321 7/20/2022
2.0.0.9 1,388 7/15/2022
2.0.0.8 1,377 7/12/2022
2.0.0.7 1,414 6/20/2022
2.0.0.6 1,455 5/23/2022
2.0.0.5 1,438 5/18/2022