FlanderDev.RouteGen.Abstractions 0.2.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package FlanderDev.RouteGen.Abstractions --version 0.2.8
                    
NuGet\Install-Package FlanderDev.RouteGen.Abstractions -Version 0.2.8
                    
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="FlanderDev.RouteGen.Abstractions" Version="0.2.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FlanderDev.RouteGen.Abstractions" Version="0.2.8" />
                    
Directory.Packages.props
<PackageReference Include="FlanderDev.RouteGen.Abstractions" />
                    
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 FlanderDev.RouteGen.Abstractions --version 0.2.8
                    
#r "nuget: FlanderDev.RouteGen.Abstractions, 0.2.8"
                    
#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 FlanderDev.RouteGen.Abstractions@0.2.8
                    
#: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=FlanderDev.RouteGen.Abstractions&version=0.2.8
                    
Install as a Cake Addin
#tool nuget:?package=FlanderDev.RouteGen.Abstractions&version=0.2.8
                    
Install as a Cake Tool

FlanderDev.RouteGen.Abstractions

Attributes and runtime types for RouteGen.

This package contains everything your shared project (and application code) needs to reference:

  • [ApiRoute], [Get], [Post], [Put], [Delete], [Patch]
  • [Query], [Body], [Route]
  • [Authorize], [AllowAnonymous]
  • ApiException (thrown by the generated client on non-success responses)

Quick start

dotnet add package FlanderDev.RouteGen.Abstractions

Then define your API contract once:

[ApiRoute("api/mods", HttpClientName = "App")]
public partial interface IModsApi
{
    [Get]
    Task<ModListResult> GetMods([Query] int page = 1, [Query] string? search = null);

    [Get("{id:int}")]
    Task<ModDto> GetMod(int id);

    [Post("upload")]
    [Authorize]
    Task<ModDto> Upload([Body] ModUploadDto dto);
}

The matching generator package (FlanderDev.RouteGen.Generators) turns this into a controller base + strongly typed HttpClient implementation.

License

MIT

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.
  • .NETStandard 2.0

    • No dependencies.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FlanderDev.RouteGen.Abstractions:

Package Downloads
FlanderDev.RouteGen.Generators

Roslyn incremental source generators that eliminate hand-maintained route/URL constants in Blazor WebAssembly Hosted + ASP.NET Core solutions. Declare an API once as an attributed interface in a shared project; RouteGen generates a routed abstract MVC controller base for the server and a strongly-typed HttpClient implementation for the client, plus a Paths class generated from @page directives.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.8.1 0 10/5/2026
0.8.0 50 10/3/2026
0.7.1 127 9/18/2026
0.6.1 124 9/13/2026
0.5.2 126 8/28/2026
0.5.1 151 8/24/2026
0.4.0 143 8/24/2026
0.3.0 145 8/23/2026
0.2.8 134 8/22/2026
0.2.7 149 8/19/2026
0.2.6 135 8/19/2026
0.2.5 143 8/18/2026
0.2.4 135 8/18/2026