NetMediate.SourceGeneration 2026.6.2.793

dotnet add package NetMediate.SourceGeneration --version 2026.6.2.793
                    
NuGet\Install-Package NetMediate.SourceGeneration -Version 2026.6.2.793
                    
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.6.2.793">
  <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.6.2.793" />
                    
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.6.2.793
                    
#r "nuget: NetMediate.SourceGeneration, 2026.6.2.793"
                    
#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.6.2.793
                    
#: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.6.2.793
                    
Install as a Cake Addin
#tool nuget:?package=NetMediate.SourceGeneration&version=2026.6.2.793
                    
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 0 6/2/2026
2026.6.1.809 54 6/1/2026
2026.5.29.881 55 5/29/2026
2026.5.29.822 48 5/29/2026
2026.5.25.1179 111 5/25/2026
2026.5.25.1106 97 5/25/2026
2026.5.25.1091 101 5/25/2026
2026.5.25.1029 99 5/25/2026
2026.5.25.1017 101 5/25/2026
2026.5.25.987 105 5/25/2026
2026.5.25.971 105 5/25/2026
2026.5.22.800 127 5/22/2026
2026.5.22.798 104 5/22/2026
2026.5.21.1216 99 5/21/2026
2026.5.19.1340 108 5/19/2026
2026.5.17.1060 111 5/17/2026
2026.5.16.984 122 5/16/2026
2026.5.16.823 90 5/16/2026
2026.5.16.787 90 5/16/2026
2026.5.15.1272 93 5/15/2026
Loading failed