NetMediate.SourceGeneration 2026.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package NetMediate.SourceGeneration --version 2026.0.2
                    
NuGet\Install-Package NetMediate.SourceGeneration -Version 2026.0.2
                    
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="NetMediate.SourceGeneration" Version="2026.0.2">
  <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="NetMediate.SourceGeneration" Version="2026.0.2" />
                    
Directory.Packages.props
<PackageReference Include="NetMediate.SourceGeneration">
  <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 NetMediate.SourceGeneration --version 2026.0.2
                    
#r "nuget: NetMediate.SourceGeneration, 2026.0.2"
                    
#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 NetMediate.SourceGeneration@2026.0.2
                    
#: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=NetMediate.SourceGeneration&version=2026.0.2
                    
Install as a Cake Addin
#tool nuget:?package=NetMediate.SourceGeneration&version=2026.0.2
                    
Install as a Cake Tool

NetMediate.SourceGeneration

Reference this package in the application's startup/main project with:

<PackageReference Include="NetMediate.SourceGeneration" Version="x.x.x.x">
  <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  <PrivateAssets>all</PrivateAssets>
</PackageReference>

NetMediate.SourceGeneration is the package that runs the NetMediate source generator directly.

Indirect but required dependencies

When you install this package, its buildTransitive file adds these required PackageReference entries automatically:

  • NetMediate — runtime implementation used by the generated registrations
  • GenDI.SourceGenerator — generator that emits the DI builder APIs used by NetMediate

You normally do not add those packages manually in the same startup project. They are indirect dependencies, but they are still required for the generated experience to work.

Contracts-only projects

If you have a shared contracts project, reference NetMediate.Core there:

dotnet add package NetMediate.Core

Then reference NetMediate.SourceGeneration only in the executable/startup project that calls AddNetMediate().

There are no supported framework assets in this 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
2026.5.13.1367 0 5/13/2026
2026.5.12.1336 61 5/12/2026
2026.5.11.1060 61 5/11/2026
2026.0.2 72 5/11/2026
2026.0.1 70 5/10/2026
26.5.10.68 67 5/10/2026
26.5.9.62 117 5/9/2026
26.5.8.703 51 5/8/2026
26.5.6.675 89 5/6/2026
26.5.6.322 83 5/6/2026
26.5.6.6 88 5/6/2026
26.5.5.1074 118 5/5/2026
26.5.5.1037 91 5/5/2026
26.5.4.1242 149 5/4/2026
26.5.4.1234 87 5/4/2026
26.5.4.637 125 5/4/2026
26.5.1.742 158 5/1/2026
26.5.1.259 124 5/1/2026
26.5.1.257 92 5/1/2026
26.5.1.252 94 5/1/2026
Loading failed