RealmDigital.SourceGenerators.MediatorRequestToController 0.0.31

There is a newer version of this package available.
See the version list below for details.
dotnet add package RealmDigital.SourceGenerators.MediatorRequestToController --version 0.0.31                
NuGet\Install-Package RealmDigital.SourceGenerators.MediatorRequestToController -Version 0.0.31                
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="RealmDigital.SourceGenerators.MediatorRequestToController" Version="0.0.31" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RealmDigital.SourceGenerators.MediatorRequestToController --version 0.0.31                
#r "nuget: RealmDigital.SourceGenerators.MediatorRequestToController, 0.0.31"                
#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.
// Install RealmDigital.SourceGenerators.MediatorRequestToController as a Cake Addin
#addin nuget:?package=RealmDigital.SourceGenerators.MediatorRequestToController&version=0.0.31

// Install RealmDigital.SourceGenerators.MediatorRequestToController as a Cake Tool
#tool nuget:?package=RealmDigital.SourceGenerators.MediatorRequestToController&version=0.0.31                

MediatorRequestToController Generator

A .NET 6.0 MediatR IRequest to API Controller Generator.

With this project, you can easily have API controllers auto generated for all your MediatR Queries/Commands

How to use

Firstly, add the project from Nuget - RealmDigital.SourceGenerators.MediatorRequestToController.

Ensure the package is configured as an Analyser

<ItemGroup>
    ...
    <PackageReference Include="RealmDigital.SourceGenerators.MediatorRequestToController" Version="0.0.12" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

Then add an AdditionalFile in your .csproj named "MediatorRequestToControllerGenerator.json", like so:

<ItemGroup>
     <AdditionalFiles Include="MediatorRequestToControllerGenerator.json" />
</ItemGroup>

Once that's done, add the settings file and change as required:

{
  "Namespace": "AutogeneratedControllers",
  "AdditionalNamespaces": [],
  "ControllerBaseClass": "RealmDigital.Common.ApiController",
  "InterfaceNameQuery": "IQuery",
  "InterfaceNameCommand": "ICommand",
  "NamespacePartToIgnoreForOpenApiTag": "Crud",
  
}
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. 
.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.

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
0.0.32 110 11/26/2024
0.0.31 89 11/25/2024
0.0.30 199 6/5/2024
0.0.29 221 8/30/2023
0.0.28 441 6/22/2023
0.0.27 179 6/22/2023
0.0.26 206 5/2/2023
0.0.25 269 3/6/2023
0.0.24 280 2/17/2023
0.0.23 277 2/13/2023
0.0.22 413 1/27/2023
0.0.21 311 1/27/2023
0.0.20 380 1/20/2023
0.0.19 325 1/17/2023
0.0.18 333 1/13/2023
0.0.17 324 1/13/2023
0.0.16 380 12/2/2022
0.0.15 375 11/25/2022
0.0.14 379 11/15/2022
0.0.12 360 11/14/2022
0.0.11 381 11/14/2022
0.0.10 373 11/14/2022
0.0.9 390 11/14/2022
0.0.8 421 10/28/2022
0.0.7 412 10/27/2022
0.0.6 418 10/24/2022
0.0.5 427 10/24/2022
0.0.4 435 10/24/2022
0.0.3 412 10/24/2022
0.0.2 423 10/24/2022
0.0.1 448 10/24/2022