Explicitly set netCoreProjectFile only for .NET Core target (#5151)

This commit is contained in:
Tatsuro Shibamura
2020-02-02 01:26:27 +09:00
committed by GitHub
parent a8435d153e
commit 8197a8a47b

View File

@@ -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.");