Asteroid.DependencyInjection.CompilerTools 0.2.3

dotnet add package Asteroid.DependencyInjection.CompilerTools --version 0.2.3
                    
NuGet\Install-Package Asteroid.DependencyInjection.CompilerTools -Version 0.2.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="Asteroid.DependencyInjection.CompilerTools" Version="0.2.3">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Asteroid.DependencyInjection.CompilerTools" Version="0.2.3" />
                    
Directory.Packages.props
<PackageReference Include="Asteroid.DependencyInjection.CompilerTools">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 Asteroid.DependencyInjection.CompilerTools --version 0.2.3
                    
#r "nuget: Asteroid.DependencyInjection.CompilerTools, 0.2.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.
#:package Asteroid.DependencyInjection.CompilerTools@0.2.3
                    
#: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=Asteroid.DependencyInjection.CompilerTools&version=0.2.3
                    
Install as a Cake Addin
#tool nuget:?package=Asteroid.DependencyInjection.CompilerTools&version=0.2.3
                    
Install as a Cake Tool

Asteroid.DependencyInjection.CompilerTools

本包包含与 Asteroid.DependencyInjection 配套的分析器和成员注入源生成器。

运行时模块引用本包,其 buildTransitive 资产会自动应用于下游项目。消费者应使用 [Injectable][Inject],不应直接引用本包。

可注入的 partial 类可以实现 partial void OnInjected(ServiceDomain domain),用于初始化 依赖生成器赋值成员的状态。该钩子会在当前继承层声明的成员完成赋值后运行。

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
0.2.3 97 9/8/2026
0.2.2 90 9/8/2026
0.2.1 136 9/7/2026
0.2.0 95 8/30/2026
0.1.2 93 8/25/2026
0.1.1 148 8/21/2026
0.1.0 151 8/20/2026