Skip to content

csharp-use-standard-acronyms

Id
@azure-tools/typespec-client-generator-core/csharp-use-standard-acronyms

C# SDK names should use standard acronym casing.

C# SDK names should use standard acronym casing. This initial rule covers IP, DB, and OS.

The rule checks the C#-resolved name and respects @clientName overrides.

model IpAddress {
value: string;
}
model CosmosDb {
id: string;
}
model IPAddress {
value: string;
}
model CosmosDB {
id: string;
}

Or using @@clientName in client.tsp to override just the C# name:

client.tsp
@@clientName(IpAddress, "IPAddress", "csharp");