Open MJEdwin opened 1 year ago
Microsoft修改了System.Drawing.Common的策略,该功能在.net 6及以上不可使用,详见 https://learn.microsoft.com/zh-cn/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only
// on linux or macos will throw error ImageUtil.ResizeImage(img,width, height); ImageUtil.CropImage(img, x, y, width, height);
.net 6.0
问题描述及重现代码:
Microsoft修改了System.Drawing.Common的策略,该功能在.net 6及以上不可使用,详见 https://learn.microsoft.com/zh-cn/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only
具体版本
.net 6.0