remove web.config (#6214)

This commit is contained in:
William Cheng
2020-05-08 22:47:16 +08:00
committed by GitHub
parent f327f01c19
commit d6d241bdab
5 changed files with 3 additions and 15 deletions

View File

@@ -538,10 +538,7 @@ public class AspNetCoreServerCodegen extends AbstractCSharpCodegen {
if (aspnetCoreVersion.getOptValue().startsWith("3.")) {
compatibilityVersion = null;
} else if ("2.0".equals(aspnetCoreVersion.getOptValue())) {
supportingFiles.add(new SupportingFile("web.config", packageFolder, "web.config"));
compatibilityVersion = null;
} else if ("2.2".equals(aspnetCoreVersion.getOptValue()) || "2.1".equals(aspnetCoreVersion.getOptValue())) {
supportingFiles.add(new SupportingFile("wwwroot" + File.separator + "web.config", packageFolder + File.separator + "wwwroot", "web.config"));
} else {
// default, do nothing
compatibilityVersion = "Version_" + aspnetCoreVersion.getOptValue().replace(".", "_");