Skip to content

Commit dd6b4ad

Browse files
committed
point 2.2 templates to the right location
1 parent 07a0c5b commit dd6b4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/AspNetCoreServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void processOpts() {
140140
supportingFiles.add(new SupportingFile("Program.mustache", packageFolder, "Program.cs"));
141141
supportingFiles.add(new SupportingFile("Project.csproj.mustache", packageFolder, this.packageName + ".csproj"));
142142
supportingFiles.add(new SupportingFile("Dockerfile.mustache", packageFolder, "Dockerfile"));
143-
} else if (this.aspNetCoreVersion.equals("2.1")) {
143+
} else if (this.aspNetCoreVersion.equals("2.1") || this.aspNetCoreVersion.equals("2.2")) {
144144
apiTemplateFiles.put("2.1/controller.mustache", ".cs");
145145
addInterfaceControllerTemplate(interfaceOnly, interfaceController);
146146

0 commit comments

Comments
 (0)