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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.")) { if (aspnetCoreVersion.getOptValue().startsWith("3.")) {
compatibilityVersion = null; compatibilityVersion = null;
} else if ("2.0".equals(aspnetCoreVersion.getOptValue())) { } else if ("2.0".equals(aspnetCoreVersion.getOptValue())) {
supportingFiles.add(new SupportingFile("web.config", packageFolder, "web.config"));
compatibilityVersion = null; 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 { } else {
// default, do nothing // default, do nothing
compatibilityVersion = "Version_" + aspnetCoreVersion.getOptValue().replace(".", "_"); compatibilityVersion = "Version_" + aspnetCoreVersion.getOptValue().replace(".", "_");

View File

@ -1 +1 @@
4.3.1-SNAPSHOT 5.0.0-SNAPSHOT

View File

@ -7,7 +7,7 @@
<PreserveCompilationContext>true</PreserveCompilationContext> <PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>Org.OpenAPITools</AssemblyName> <AssemblyName>Org.OpenAPITools</AssemblyName>
<PackageId>Org.OpenAPITools</PackageId> <PackageId>Org.OpenAPITools</PackageId>
<UserSecretsId>6f694806-4622-45c8-9b52-bbc7029b4a96</UserSecretsId> <UserSecretsId>00e09591-96ca-4710-afd4-c79045f14b87</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>..\..</DockerfileContext> <DockerfileContext>..\..</DockerfileContext>
</PropertyGroup> </PropertyGroup>

View File

@ -1 +1 @@
4.3.1-SNAPSHOT 5.0.0-SNAPSHOT

View File

@ -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>