SourceCrafter.DependencyInjection.Metadata 2.26.282.289

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

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

  1. Add this package to your library project
  2. Decorate your classes with service attributes
  3. Consumers of your library add SourceCrafter.DependencyInjection to get the code generator
  4. 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

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SourceCrafter.DependencyInjection.Metadata:

Package Downloads
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.286.181 116 10/13/2026
2.26.283.228 157 10/10/2026
2.26.282.289 126 10/9/2026
2.26.282.142 167 10/9/2026
2.26.273.86 107 9/30/2026
2.26.265.50 110 9/22/2026
2.26.263.311 109 9/20/2026
2.26.262.371 110 9/19/2026
2.26.262.287 112 9/19/2026
2.26.262.202 108 9/19/2026
2.26.261.445 103 9/18/2026
2.26.249.144 157 9/6/2026
2.26.233.161 117 8/21/2026
2.26.227.290 120 8/15/2026
2.26.226.430 116 8/14/2026
2.26.226.81 114 8/14/2026
2.26.212.228 134 7/31/2026
2.26.212.105 127 7/31/2026
2.26.211.464 127 7/30/2026
2.26.206.340 122 7/25/2026
Loading failed