Skip to content

Commit c6841c2

Browse files
committed
Removed deprecated files generation
1 parent 1fe8500 commit c6841c2

3 files changed

Lines changed: 0 additions & 36 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen {
6868
// Defines TargetFrameworkVersion in csproj files
6969
protected String targetFramework = defaultFramework.name;
7070

71-
// Defines nuget identifiers for target framework
72-
protected String targetFrameworkNuget = targetFramework;
73-
7471
protected boolean supportsAsync = Boolean.TRUE;
7572
protected boolean netStandard = Boolean.FALSE;
7673

@@ -555,7 +552,6 @@ public void processOpts() {
555552
syncStringProperty(additionalProperties, CodegenConstants.API_PACKAGE, this::setApiPackage, apiPackage);
556553
syncStringProperty(additionalProperties, CodegenConstants.MODEL_PACKAGE, this::setModelPackage, modelPackage);
557554
syncStringProperty(additionalProperties, CodegenConstants.OPTIONAL_PROJECT_GUID, this::setPackageGuid, packageGuid);
558-
syncStringProperty(additionalProperties, "targetFrameworkNuget", this::setTargetFrameworkNuget, this.targetFrameworkNuget);
559555

560556
syncBooleanProperty(additionalProperties, "netStandard", this::setNetStandard, this.netStandard);
561557

@@ -597,10 +593,6 @@ public void processOpts() {
597593
supportingFiles.add(new SupportingFile("RequestOptions.mustache", clientPackageDir, "RequestOptions.cs"));
598594
supportingFiles.add(new SupportingFile("Multimap.mustache", clientPackageDir, "Multimap.cs"));
599595

600-
if (Boolean.FALSE.equals(this.netCoreProjectFileFlag)) {
601-
supportingFiles.add(new SupportingFile("project.json.mustache", packageFolder + File.separator, "project.json"));
602-
}
603-
604596
supportingFiles.add(new SupportingFile("IReadableConfiguration.mustache",
605597
clientPackageDir, "IReadableConfiguration.cs"));
606598
supportingFiles.add(new SupportingFile("GlobalConfiguration.mustache",
@@ -687,10 +679,6 @@ public void setTargetFramework(String dotnetFramework) {
687679
LOGGER.info("Generating code for .NET Framework " + this.targetFramework);
688680
}
689681

690-
public void setTargetFrameworkNuget(String targetFrameworkNuget) {
691-
this.targetFrameworkNuget = targetFrameworkNuget;
692-
}
693-
694682
public void setValidatable(boolean validatable) {
695683
this.validatable = validatable;
696684
}

modules/openapi-generator/src/main/resources/csharp-netcore/packages.config.mustache

Lines changed: 0 additions & 10 deletions
This file was deleted.

modules/openapi-generator/src/main/resources/csharp-netcore/project.json.mustache

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)