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" />
<PackageReference Include="Asteroid.DependencyInjection.CompilerTools"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Asteroid.DependencyInjection.CompilerTools&version=0.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.