找不到类型或名称空间"Mono" [英] Type or namespace 'Mono' could not be found

查看:113
本文介绍了找不到类型或名称空间"Mono"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从此处简单地编译代码 https://github.com/neoeinstein/purpleonion

I am trying to simply compile code from here https://github.com/neoeinstein/purpleonion

我已经安装了mono,monodevelop,.net framework 4和gtk#

I have installed mono, monodevelop, .net framework 4 and gtk#

当我打开解决方案并尝试编译任何项目时,出现此错误,找不到命名空间'Mono'.

When I open the solution and try to compile any of the projects, I get this error, namespace 'Mono' could not be found.

怎么找不到?不是必须的基本名称空间以单声道形式存在?

How can it not be found? Isn't that the base namespace that must exist in mono?

推荐答案

BCL程序集的Mono实现不会公开任何其他API.如果某人指的是Mono名称空间,则它来自另一个程序集,在本例中为Mono.Security.dll.

The Mono implementation of the BCL assemblies does not expose any additional API. If something's referring to a Mono namespace, it comes from another assembly, in this case Mono.Security.dll.

在Windows上,MonoDevelop能够定位.NET或Mono.默认情况下,它以.NET为目标.

On Windows, MonoDevelop is capable of targeting either .NET or Mono. by default it targets .NET.

有两种方法可以解决此问题:

There are two ways you could fix this:

  1. 假设Mono.Security.dll程序集可以在.NET中安装,请将该程序安装到.NET中.您可以通过将其放置在程序集文件夹"中来进行编译

  1. Install the Mono.Security.dll assembly into .NET, assuming it works there. You would do this for compile-time by placing it in an "assembly folder"

将MonoDevelop设置为使用 Project-> Target Runtime 定位Mono框架,或在 .NET Runtimes 选项面板中更改默认值.

Set MonoDevelop to target the Mono framework using Project->Target Runtime or change the default in the .NET Runtimes options panel.

这篇关于找不到类型或名称空间"Mono"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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