forked from loafle/openapi-generator-original
remove web.config (#6214)
This commit is contained in:
parent
f327f01c19
commit
d6d241bdab
@ -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(".", "_");
|
||||
|
@ -1 +1 @@
|
||||
4.3.1-SNAPSHOT
|
||||
5.0.0-SNAPSHOT
|
@ -7,7 +7,7 @@
|
||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||
<AssemblyName>Org.OpenAPITools</AssemblyName>
|
||||
<PackageId>Org.OpenAPITools</PackageId>
|
||||
<UserSecretsId>6f694806-4622-45c8-9b52-bbc7029b4a96</UserSecretsId>
|
||||
<UserSecretsId>00e09591-96ca-4710-afd4-c79045f14b87</UserSecretsId>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<DockerfileContext>..\..</DockerfileContext>
|
||||
</PropertyGroup>
|
||||
|
@ -1 +1 @@
|
||||
4.3.1-SNAPSHOT
|
||||
5.0.0-SNAPSHOT
|
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
|
||||
</handlers>
|
||||
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false"/>
|
||||
</system.webServer>
|
||||
</configuration>
|
Loading…
x
Reference in New Issue
Block a user