本文介绍了System.Drawing命名空间中aspnetVnext核心CLR失踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

System.Drawing命名空间不在coreCLR可用。我想调整在服务器中的图像,并返回存放。

System.drawing namespace is not available in the coreCLR . I want to resize the image in the server and return store it.

要给予更多的情况下我的应用程序使用降价为内容的版本。一旦图像上传我要调整和HTML应用它。我正在组装与coreclr桌面上工作不是。

To give more context my application uses markdown for content edition . once the image is uploaded I want to resize and apply it in HTML . I am making an assembly to work with coreclr not on the desktop .

推荐答案

简短的回答(和唯一的答案,目前)是肯定的,你是完全正确的。 System.Drawing中是不是也永远不会成为核心一个不错的选择,特别是因为它是跨平台的。我们正在寻找像一个管理的libgd包装等解决方案,这里讨论 https://github.com/imazen/Graphics-vNext

The short answer (and only answer, for now) is yes, you're totally correct. System.Drawing isn't and will never be a good option for Core, especially since it's cross platform. We are looking at other solutions like a managed libgd wrapper as discussed here https://github.com/imazen/Graphics-vNext

这篇关于System.Drawing命名空间中aspnetVnext核心CLR失踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 03:51