Csharp error on ubuntu 14.04

2019-09-13 03:01发布

问题:

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)

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

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

回答1:

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:

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.



标签: c# ubuntu