NetMediate.SourceGeneration 2026.5.29.822

There is a newer version of this package available.
See the version list below for details.
dotnet add package NetMediate.SourceGeneration --version 2026.5.29.822
                    
NuGet\Install-Package NetMediate.SourceGeneration -Version 2026.5.29.822
                    
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.5.29.822">
  <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.5.29.822" />
                    
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.5.29.822
                    
#r "nuget: NetMediate.SourceGeneration, 2026.5.29.822"
                    
#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.5.29.822
                    
#: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.5.29.822
                    
Install as a Cake Addin
#tool nuget:?package=NetMediate.SourceGeneration&version=2026.5.29.822
                    
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>contentfiles; compile; runtime</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.

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.6.2.793 93 6/2/2026
2026.6.1.809 105 6/1/2026
2026.5.29.881 100 5/29/2026
2026.5.29.822 92 5/29/2026
2026.5.25.1179 114 5/25/2026
2026.5.25.1106 103 5/25/2026
2026.5.25.1091 104 5/25/2026
2026.5.25.1029 102 5/25/2026
2026.5.25.1017 105 5/25/2026
2026.5.25.987 108 5/25/2026
2026.5.25.971 110 5/25/2026
2026.5.22.800 134 5/22/2026
2026.5.22.798 108 5/22/2026
2026.5.21.1216 106 5/21/2026
2026.5.19.1340 113 5/19/2026
2026.5.17.1060 115 5/17/2026
2026.5.16.984 124 5/16/2026
2026.5.16.823 95 5/16/2026
2026.5.16.787 93 5/16/2026
2026.5.15.1272 96 5/15/2026
Loading failed