generators/aspnetcore


id: generator-opts-server-aspnetcore title: Config Options for aspnetcoresidebar_label: aspnetcore


OptionDescriptionValuesDefault
licenseUrlThe URL of the licensehttp://localhost
licenseNameThe name of the licenseNoLicense
packageCopyrightSpecifies an AssemblyCopyright for the .NET Framework global assembly attributes stored in the AssemblyInfo file.No Copyright
packageAuthorsSpecifies Authors property in the .NET Core project file.OpenAPI
packageTitleSpecifies an AssemblyTitle for the .NET Framework global assembly attributes stored in the AssemblyInfo file.OpenAPI Library
packageNameC# package name (convention: Title.Case).Org.OpenAPITools
packageVersionC# package version.1.0.0
packageGuidThe GUID that will be associated with the C# projectnull
sourceFoldersource folder for generated codesrc
compatibilityVersionASP.Net Core CompatibilityVersionVersion_2_2
aspnetCoreVersionASP.NET Core version: 3.0 (preview4 only), 2.2, 2.1, 2.0 (deprecated)2.2
swashbuckleVersionSwashbucke version: 3.0.0, 4.0.03.0.0
sortParamsByRequiredFlagSort method arguments to place required parameters before optional parameters.true
useDateTimeOffsetUse DateTimeOffset to model date-time propertiesfalse
useCollectionDeserialize array types to Collection<T> instead of List<T>.false
returnICollectionReturn ICollection<T> instead of the concrete type.false
useSwashbuckleUses the Swashbuckle.AspNetCore NuGet package for documentation.true
isLibraryIs the build a libraryfalse
useFrameworkReferenceUse frameworkReference for ASP.NET Core 3.0+ and PackageReference ASP.NET Core 2.2 or earlier.false
useNewtonsoftUses the Newtonsoft JSON library.true
newtonsoftVersionVersion for Microsoft.AspNetCore.Mvc.NewtonsoftJson for ASP.NET Core 3.0+3.0.0-preview5-19227-01
useDefaultRoutingUse default routing for the ASP.NET Core version. For 3.0 turn off default because it is not yet supported.true
classModifierClass Modifier can be empty, abstract
operationModifierOperation Modifier can be virtual, abstract or partialvirtual
buildTargetTarget to build an application or libraryprogram
generateBodyGenerates method body.true
operationIsAsyncSet methods to async or sync (default).false
operationResultTaskSet methods result to Task<>.false
modelClassModifierModel Class Modifier can be nothing or partialpartial