ubuntu 14.04 上的 Csharp 错误 [英] Csharp error on ubuntu 14.04

查看:39
本文介绍了ubuntu 14.04 上的 Csharp 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ubuntu 14.04 上编译 c# 时收到以下警告:警告 CS8001:无法解析 SDK 路径编译成功 - 1 个警告

I've got the following warning on ubuntu 14.04 while compiling c#: warning CS8001: SDK path could not be resolved Compilation succeeded - 1 warning(s)

虽然它仍然会使用 mono helloold.exe 执行.我刚刚开始学习 csharp,所以请理解我.

Though it will still execute using mono hellowold.exe. I'm just starting to learn csharp so please understand me.

我已经使用本教程安装了 csharp:https://www.youtube.com/watch?v=WnhKj8c5TcE

I have installed csharp using this tutorials: https://www.youtube.com/watch?v=WnhKj8c5TcE

推荐答案

该问题已在原始问题下方的评论中解决.对于遇到相同问题的人,此答案是一个简短的总结:

The problem was resolved in the comments below the original question. this answer is a short summary for those who run into the same problem:

缺少 SDK 错误的原因有很多,大多数情况下是 System.Drawing.dll 缺失.该库默认安装在 .net 中,但不安装在 Mono 中.在 Mono 中,您必须安装 libmono-winforms2.0-cil 包.可以使用 Linux 发行版的包管理器安装包.

The missing SDK error can be given for many reasons, most of the times however its the System.Drawing.dll missing. This library is installed by default in .net but not in Mono. In Mono you will have to install the libmono-winforms2.0-cil package. Package can be installed using the package manager of your Linux distribution.

这篇关于ubuntu 14.04 上的 Csharp 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆