fix compilation errors in the C# client generator

This commit is contained in:
William Cheng
2022-02-28 09:41:47 +08:00
parent 76d224fe9b
commit d2b80984ed

View File

@@ -691,9 +691,6 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen {
setNetCoreProjectFileFlag(true);
if (!additionalProperties.containsKey(CodegenConstants.NULLABLE_REFERENCE_TYPES) && !strategies.stream().anyMatch(s ->
s.equals(FrameworkStrategy.NETCOREAPP_2_0) ||
s.equals(FrameworkStrategy.NETCOREAPP_2_1) ||
s.equals(FrameworkStrategy.NETCOREAPP_3_0) ||
s.equals(FrameworkStrategy.NETCOREAPP_3_1) ||
s.equals(FrameworkStrategy.NET_5_0) ||
s.equals(FrameworkStrategy.NETFRAMEWORK_4_7))) {