LeeTeke.Microsoft.DependencyInjection.Extensions.AOT 1.0.0

dotnet add package LeeTeke.Microsoft.DependencyInjection.Extensions.AOT --version 1.0.0
                    
NuGet\Install-Package LeeTeke.Microsoft.DependencyInjection.Extensions.AOT -Version 1.0.0
                    
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="LeeTeke.Microsoft.DependencyInjection.Extensions.AOT" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LeeTeke.Microsoft.DependencyInjection.Extensions.AOT" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="LeeTeke.Microsoft.DependencyInjection.Extensions.AOT" />
                    
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 LeeTeke.Microsoft.DependencyInjection.Extensions.AOT --version 1.0.0
                    
#r "nuget: LeeTeke.Microsoft.DependencyInjection.Extensions.AOT, 1.0.0"
                    
#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 LeeTeke.Microsoft.DependencyInjection.Extensions.AOT@1.0.0
                    
#: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=LeeTeke.Microsoft.DependencyInjection.Extensions.AOT&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=LeeTeke.Microsoft.DependencyInjection.Extensions.AOT&version=1.0.0
                    
Install as a Cake Tool

LeeTeke.Microsoft.DependencyInjection.Extensions

本项目为Microsoft.DependencyInjection 的扩展方法使用,主要用于注册,需要搭配LeeTeke.Microsoft.DependencyInjection.Extensions使用

支持 native AOT

Nuget

NUGET

dotnet add package LeeTeke.Microsoft.DependencyInjection.Extensions
dotnet add package LeeTeke.Microsoft.DependencyInjection.Extensions.AOT

主要使用如下:

//AOT模式注册
using  LeeTeke.Microsoft.DependencyInjection.Extensions.AOT;
var services = new ServiceCollection();
services.AddFromAssembliyAOT();
var ioc = services.BuildServiceProvider();
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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.0 217 8/5/2025
1.0.0-rc1 208 8/5/2025
1.0.0-rc 212 8/5/2025