SourceCrafter.DependencyInjection.Metadata
2.26.329.330
dotnet add package SourceCrafter.DependencyInjection.Metadata --version 2.26.329.330
NuGet\Install-Package SourceCrafter.DependencyInjection.Metadata -Version 2.26.329.330
<PackageReference Include="SourceCrafter.DependencyInjection.Metadata" Version="2.26.329.330" />
<PackageVersion Include="SourceCrafter.DependencyInjection.Metadata" Version="2.26.329.330" />
<PackageReference Include="SourceCrafter.DependencyInjection.Metadata" />
paket add SourceCrafter.DependencyInjection.Metadata --version 2.26.329.330
#r "nuget: SourceCrafter.DependencyInjection.Metadata, 2.26.329.330"
#:package SourceCrafter.DependencyInjection.Metadata@2.26.329.330
#addin nuget:?package=SourceCrafter.DependencyInjection.Metadata&version=2.26.329.330
#tool nuget:?package=SourceCrafter.DependencyInjection.Metadata&version=2.26.329.330
SourceCrafter.DependencyInjection.Metadata
Purpose
This NuGet package contains compile-time attribute metadata only. It provides the attribute definitions—[ServiceProvider], [Singleton<T>], [Scoped<T>], [Transient<T>], and [JsonSetting<T>]—without any code generator.
Use Cases
- For Library Authors: Add attribute support to your libraries without requiring the full code generator as a dependency
- Minimal Footprint: Ships only metadata; no compile-time overhead (attribute definitions are erased after compilation)
- Design-Time Contracts: Define service contracts that other projects can implement
Installation
dotnet add package SourceCrafter.DependencyInjection.Metadata
What's Included
[ServiceProvider]– Container marker[Singleton<T, TImpl>],[Scoped<T, TImpl>],[Transient<T>]– Service lifetime attributes[JsonSetting<T>(section)]– Configuration loading- Supporting enums:
Disposability(None, Dispose, AsyncDispose)
Typical Workflow
- Add this package to your library project
- Decorate your classes with service attributes
- Consumers of your library add
SourceCrafter.DependencyInjectionto get the code generator - Generator sees your attributes and generates resolvers in consumer's container
Target Framework
.NET Standard 2.0– Wide compatibility with .NET Framework, .NET Core, and modern .NET
See Also
- SourceCrafter.DependencyInjection – Core code generator
- SourceCrafter.DependencyInjection.MsConfiguration – MSEC generator
- SourceCrafter.DependencyInjection.MsConfiguration.Metadata – Extended metadata for MSEC generator
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on SourceCrafter.DependencyInjection.Metadata:
| Package | Downloads |
|---|---|
|
SourceCrafter.DependencyInjection.MsConfiguration.Metadata
Attributes for compile-time dependency injection library utilizing attributes to simplify and automate Microsoft configuration services registration |
|
|
SourceCrafter.DependencyInjection
Compile-time dependency injection library utilizing attributes to simplify and automate service registration |
|
|
SourceCrafter.LiteSpeedLink.Abstractions
LiteSpeedLink contracts: IServiceUnit, response status, processors, retry and cache attributes. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.26.329.330 | 53 | 11/25/2026 |
| 2.26.328.306 | 68 | 11/24/2026 |
| 2.26.325.281 | 127 | 11/21/2026 |
| 2.26.286.181 | 158 | 10/13/2026 |
| 2.26.283.228 | 171 | 10/10/2026 |
| 2.26.282.289 | 141 | 10/9/2026 |
| 2.26.282.142 | 180 | 10/9/2026 |
| 2.26.273.86 | 114 | 9/30/2026 |
| 2.26.265.50 | 119 | 9/22/2026 |
| 2.26.263.311 | 117 | 9/20/2026 |
| 2.26.262.371 | 121 | 9/19/2026 |
| 2.26.262.287 | 119 | 9/19/2026 |
| 2.26.262.202 | 115 | 9/19/2026 |
| 2.26.261.445 | 112 | 9/18/2026 |
| 2.26.249.144 | 166 | 9/6/2026 |
| 2.26.233.161 | 122 | 8/21/2026 |
| 2.26.227.290 | 127 | 8/15/2026 |
| 2.26.226.430 | 122 | 8/14/2026 |
| 2.26.226.81 | 119 | 8/14/2026 |
| 2.26.212.228 | 142 | 7/31/2026 |