Reference
Configuration Properties
Complete table of all AutoSDK_* MSBuild properties for the source generator.
All properties use the AutoSDK_ prefix and are configured in your .csproj file within a <PropertyGroup>.
| Property | Type | Default | Description |
|---|
AutoSDK_Namespace | string | PackageId/AssemblyName | C# namespace for generated code |
AutoSDK_ClassName | string | Api | Generated client class name |
AutoSDK_TargetFramework | string | From project | Target framework override |
AutoSDK_ClsCompliantEnumPrefix | string | x | Prefix for enum values starting with digits |
| Property | Type | Default | Description |
|---|
AutoSDK_JsonSerializerType | enum | SystemTextJson | SystemTextJson or NewtonsoftJson |
AutoSDK_NamingConvention | enum | — | InnerClasses or ConcatNames |
AutoSDK_JsonSerializerContext | string | — | Full type name of existing JsonSerializerContext |
AutoSDK_GenerateJsonSerializerContextTypes | bool | false | Generate context type registrations |
| Property | Type | Default | Description |
|---|
AutoSDK_UseRequiredKeyword | enum | InSupportedTargetFrameworks | Use C# required keyword |
AutoSDK_UseExperimentalAttributes | enum | InSupportedTargetFrameworks | Use [Experimental] attributes |
AutoSDK_UseSetsRequiredMembersAttributes | enum | InSupportedTargetFrameworks | Use [SetsRequiredMembers] |
| Property | Type | Default | Description |
|---|
AutoSDK_GenerateConstructors | bool | false | Generate auth-aware constructors |
AutoSDK_GenerateMethods | bool | false | Generate HTTP client methods |
AutoSDK_GroupByTags | bool | false | Group operations by OpenAPI tags |
AutoSDK_MethodNamingConvention | enum | SimpleOperationId | Method naming strategy |
AutoSDK_MethodNamingConventionFallback | enum | MethodAndPath | Fallback naming |
AutoSDK_UseExtensionNaming | bool | false | Use x-fern naming extensions |
| Property | Type | Default | Description |
|---|
AutoSDK_IncludeOperationIds | string | — | Semicolon-separated operation IDs to include |
AutoSDK_ExcludeOperationIds | string | — | Semicolon-separated operation IDs to exclude |
AutoSDK_IncludeTags | string | — | Semicolon-separated tags to include |
AutoSDK_ExcludeTags | string | — | Semicolon-separated tags to exclude |
AutoSDK_AddMissingPathParameters | bool | false | Add path params not in spec |
| Property | Type | Default | Description |
|---|
AutoSDK_GenerateModels | bool | false | Generate model classes |
AutoSDK_ModelStyle | enum | Class | Class, Record, or ReadonlyRecordStruct |
AutoSDK_GenerateModelValidationMethods | bool | false | Generate validation methods |
AutoSDK_ValidateAnyOfs | bool | false | Validate anyOf schemas |
AutoSDK_ComputeDiscriminators | bool | false | Auto-detect discriminators |
AutoSDK_IncludeModels | string | — | Semicolon-separated models to include |
AutoSDK_ExcludeModels | string | — | Semicolon-separated models to exclude |
| Property | Type | Default | Description |
|---|
AutoSDK_SecuritySchemes | string | — | Semicolon-separated Type:Location:Name |
AutoSDK_BaseUrl | string | — | Inject server base URL |
AutoSDK_OpenApiOverrides | string | — | Spec overrides (path=action; separated) |
| Property | Type | Default | Description |
|---|
AutoSDK_GeneratePolyfills | bool | true | Generate framework compatibility shims |
AutoSDK_GenerateExceptions | bool | true | Generate exception types |
AutoSDK_GenerateSdk | bool | true | Generate full SDK |
AutoSDK_GenerateCli | bool | false | Generate CLI wrapper |
| Property | Type | Default | Description |
|---|
AutoSDK_IgnoreOpenApiErrors | bool | true | Continue on spec parse errors |
AutoSDK_IgnoreOpenApiWarnings | bool | true | Suppress spec warnings |
| Property | Type | Default | Description |
|---|
AutoSDK_GenerateWebSocketClient | bool | Auto | Generate WebSocket client |
AutoSDK_WebSocketClientClassName | string | Auto | Override WebSocket client name |
AutoSDK_TypesNamespace | string | — | Cross-namespace type references |