单声道 - 类型'对象'在未引用的程序集中定义

时间:2018-05-04 16:08:51

标签: c# compilation mono

我试图使用mono在我的raspbian raspberry pi上编译我的c#项目。这是我用来编译它的命令:

csc -r:./bin/Release/PublishOutput/Discord.Net.Core.dll -r:./bin/Release/PublishOutput/Discord.Net.Commands.dll -r:./bin/Release/PublishOutput/Discord.Net.WebSocket.dll -r:./bin/Release/PublishOutput/RedditSharp.dll */*.cs

但我每次都会收到此错误:

error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

我已尝试添加-r:System.Runtime.dll,但我收到此错误:

error CS0006: Metadata file 'System.Runtime.dll' could not be found

如何引用System.Runtime以便我可以编译我的项目?

0 个答案:

没有答案