Facility supports tools and libraries for using ASP.NET with Facility Service Definitions.
Generate an ASP.NET controller for your Facility Service Definition by doing one of the following:
fsdgenaspnet
tool on the command line or in a build script.Facility.CodeGen.AspNet
.NET library (NuGet Package) in your own build tool.fsdgenaspnet
is a command-line tool that generates C# for a Facility Service Definition.
Install fsdgenaspnet
as documented from its NuGet package.
fsdgenaspnet
generates an ASP.NET controller in the output directory. It supports the standard command-line options as well as the following additional command-line options:
--namespace <name>
: Sets the namespace used by the generated ASP.NET controller.--apinamespace <name>
: Sets the namespace that was used by the C# code generator.--target (webapi|core)
: Sets the target framework to write the code against. (default webapi
)