forked from loafle/openapi-generator-original
Explicitly set netCoreProjectFile only for .NET Core target (#5151)
This commit is contained in:
committed by
GitHub
parent
a8435d153e
commit
8197a8a47b
@@ -569,7 +569,10 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen {
|
||||
|
||||
setSupportsAsync(Boolean.TRUE);
|
||||
setNetStandard(strategy.isNetStandard);
|
||||
setNetCoreProjectFileFlag(!strategy.isNetStandard);
|
||||
|
||||
if (!strategy.isNetStandard) {
|
||||
setNetCoreProjectFileFlag(true);
|
||||
}
|
||||
|
||||
if (additionalProperties.containsKey(CodegenConstants.GENERATE_PROPERTY_CHANGED)) {
|
||||
LOGGER.warn(CodegenConstants.GENERATE_PROPERTY_CHANGED + " is not supported in the .NET Standard generator.");
|
||||
|
||||
Reference in New Issue
Block a user