File tree Expand file tree Collapse file tree
src/main/java/org/openapitools/codegen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ public class AspNetDependencyInjectGenerator extends AbstractCSharpCodegen {
5050 public static final String MODEL_CLASS_MODIFIER = "modelClassModifier" ;
5151 public static final String CREATE_PROJECT_FILE = "createProjectFile" ;
5252 public static final String EXCLUDE_FROM_CODECOVERAGE = "excludeFromCodeCoverage" ;
53+ public static final String ASPNET_CORE_VERSION_6 = "aspnetCoreVersion6" ;
5354
5455 public static final String PROJECT_SDK = "projectSdk" ;
5556 public static final String SDK_WEB = "Microsoft.NET.Sdk.Web" ;
@@ -500,6 +501,7 @@ private void setCliOption(CliOption cliOption) throws IllegalArgumentException {
500501
501502 private void setAspnetCoreVersion () {
502503 setCliOption (aspnetCoreVersion );
504+ additionalProperties .put (ASPNET_CORE_VERSION_6 , aspnetCoreVersion .getOptValue ().equals ("6.0" ));
503505 }
504506
505507 private void setPocoModels () {
You can’t perform that action at this time.
0 commit comments