RealmDigital.SourceGenerators.MediatorRequestToController 0.0.32

dotnet add package RealmDigital.SourceGenerators.MediatorRequestToController --version 0.0.32                
NuGet\Install-Package RealmDigital.SourceGenerators.MediatorRequestToController -Version 0.0.32                
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.32" />                
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.32                
#r "nuget: RealmDigital.SourceGenerators.MediatorRequestToController, 0.0.32"                
#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.32

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

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 74 11/26/2024
0.0.31 74 11/25/2024
0.0.30 188 6/5/2024
0.0.29 217 8/30/2023
0.0.28 435 6/22/2023
0.0.27 175 6/22/2023
0.0.26 202 5/2/2023
0.0.25 265 3/6/2023
0.0.24 276 2/17/2023
0.0.23 273 2/13/2023
0.0.22 409 1/27/2023
0.0.21 307 1/27/2023
0.0.20 376 1/20/2023
0.0.19 321 1/17/2023
0.0.18 329 1/13/2023
0.0.17 320 1/13/2023
0.0.16 375 12/2/2022
0.0.15 369 11/25/2022
0.0.14 373 11/15/2022
0.0.12 354 11/14/2022
0.0.11 375 11/14/2022
0.0.10 367 11/14/2022
0.0.9 384 11/14/2022
0.0.8 415 10/28/2022
0.0.7 406 10/27/2022
0.0.6 412 10/24/2022
0.0.5 421 10/24/2022
0.0.4 429 10/24/2022
0.0.3 406 10/24/2022
0.0.2 417 10/24/2022
0.0.1 442 10/24/2022