.NET Quickstart
Generate a C#/.NET SDK by following the instructions on this page.
This guide assumes that you already have an initialized
fern
folder on
your local machine. See Set up the fern
folder for more
details.Pass fern check
Run fern check
to ensure that your API definition is valid. If there are any errors,
fix them before proceeding.
If you’re using an OpenAPI Specification, check out all of our supported extensions.
Add the SDK generator
Add the C#/.NET SDK generator:
csharp-sdk
is the name of the generators.yml
group that configures your C#/.NET
SDK’s output location and other metadata. You can customize this group name to
differentiate between multiple SDKs across different languages (e.g.,
ruby-sdk
, etc) in your organization.
This command adds the following to generators.yml
:
This creates a sdks
folder in your current directory. The resulting folder structure looks like this: