我在 linux 上使用 .net core 和 C#,缺少 lib System.Drawing [英] I am using .net core with C# on linux, lib System.Drawing is missing
本文介绍了我在 linux 上使用 .net core 和 C#,缺少 lib System.Drawing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Program.cs(1,14):错误 CS0234:类型或命名空间名称绘图"命名空间System"中不存在(您是否缺少程序集参考?
Program.cs(1,14): error CS0234: The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?
可以解决这个问题吗?或者我不打算使用这个库,如果我在 Linux 中使用 C# 进行开发?
Is it possible to fix that? or I am not meant to be using this lib, if I am developing in Linux with C#?
推荐答案
在命令行运行以下命令
sudo apt-get install libgdiplus
这篇关于我在 linux 上使用 .net core 和 C#,缺少 lib System.Drawing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文