SourceCrafter.DependencyInjection.Metadata 2.26.262.287

dotnet add package SourceCrafter.DependencyInjection.Metadata --version 2.26.262.287
                    
NuGet\Install-Package SourceCrafter.DependencyInjection.Metadata -Version 2.26.262.287
                    
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.262.287" />
                    
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.262.287" />
                    
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.262.287
                    
#r "nuget: SourceCrafter.DependencyInjection.Metadata, 2.26.262.287"
                    
#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.262.287
                    
#: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.262.287
                    
Install as a Cake Addin
#tool nuget:?package=SourceCrafter.DependencyInjection.Metadata&version=2.26.262.287
                    
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

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
2.26.262.287 0 9/19/2026
2.26.262.202 0 9/19/2026
2.26.261.445 0 9/18/2026
2.26.249.144 142 9/6/2026
2.26.233.161 96 8/21/2026
2.26.227.290 100 8/15/2026
2.26.226.430 97 8/14/2026
2.26.226.81 98 8/14/2026
2.26.212.228 111 7/31/2026
2.26.212.105 110 7/31/2026
2.26.211.464 107 7/30/2026
2.26.206.340 105 7/25/2026
2.26.206.240 102 7/25/2026
2.26.206.225 99 7/25/2026
2.26.206.222 113 7/25/2026
2.26.206.28 111 7/25/2026
2.26.206.21 105 7/25/2026
2.26.206.9 108 7/25/2026
2.26.205.341 111 7/24/2026
2.26.205.55 110 7/24/2026
Loading failed