FlanderDev.RouteGen.Generators
0.2.6
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FlanderDev.RouteGen.Generators --version 0.2.6
NuGet\Install-Package FlanderDev.RouteGen.Generators -Version 0.2.6
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.Generators" Version="0.2.6"> <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="FlanderDev.RouteGen.Generators" Version="0.2.6" />
<PackageReference Include="FlanderDev.RouteGen.Generators"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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.Generators --version 0.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FlanderDev.RouteGen.Generators, 0.2.6"
#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.Generators@0.2.6
#: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.Generators&version=0.2.6
#tool nuget:?package=FlanderDev.RouteGen.Generators&version=0.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FlanderDev.RouteGen.Generators
Roslyn source generators for RouteGen.
This package generates:
- An abstract ASP.NET Core MVC controller base from your shared API interface
- A strongly typed
HttpClientimplementation for the Blazor client - Strongly typed page-route helpers from
@pagedirectives in.razorfiles
Quick start
# Shared project
dotnet add package FlanderDev.RouteGen.Abstractions
# Server + Client projects
dotnet add package FlanderDev.RouteGen.Abstractions
dotnet add package FlanderDev.RouteGen.Generators
Mark the generator package with PrivateAssets="all":
<PackageReference Include="FlanderDev.RouteGen.Generators"
Version="0.2.4"
PrivateAssets="all" />
For page-route generation, also include your Razor files:
<AdditionalFiles Include="**/*.razor" />
Define the API once in the shared project, then:
- Inherit from the generated
*ControllerBaseon the server - Inject the generated
Http*Api(or the interface) on the client
See the main README for full examples and diagnostics.
License
MIT
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- FlanderDev.RouteGen.Abstractions (>= 0.2.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.