Skip to content

Files

Latest commit

 

History

History

http-server-csharp

@typespec/http-server-csharp

TypeSpec service code generator for c-sharp

Install

npm install @typespec/http-server-csharp

Emitter

Usage

  1. Via the command line
tsp compile . --emit=@typespec/http-server-csharp
  1. Via the config
emit:
  - "@typespec/http-server-csharp"

Emitter options

skip-format

Type: boolean

Skips formatting of generated C# Types. By default, C# files are formatted using 'dotnet format'.

output-type

Type: "models" | "all"

Chooses which service artifacts to emit. choices include 'models' or 'all' artifacts.