Win 7 64位gmcs hello.cs -pkg:gtk-sharp-2.0上的Mono开发环境找不到文件 [英] Mono Development Environment on Win 7 64bit gmcs hello.cs -pkg:gtk-sharp-2.0 can't find files
问题描述
我下载了Mono,并将其安装在Win 7 64bit上
I downloaded Mono and installed it on Win 7 64bit
我去了这个网站,按照说明进行操作 http://www.mono-project.com/Mono_Basics
I went to this site to follow the instructions http://www.mono-project.com/Mono_Basics
我打开了mono命令提示符,并编译并运行了控制台hello world
I opened up the mono command prompt and compiled and ran the console hello world
然后我尝试使用
gmcs hello.cs -pkg:gtk-sharp-2.0
我明白了
C:\Code\NoControl\Mono>gmcs hello.cs -pkg:gtk-sharp-2.0
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/pango-sharp.dll' could not be found
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/atk-sharp.dll' could not be found
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/gdk-sharp.dll' could not be found
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/gtk-sharp.dll' could not be found
error CS0006: Metadata file `C:/PROGRA\~2/MONO-2\~1.8/lib/mono/gtk-sharp-2.0/glib-sharp.dll' could not be found
Compilation failed: 5 error(s), 0 warnings
我该如何解决?
这类似于这里的问题无法使用未回答的单命令提示符为gtk#编译hello.cs.
This is the similar to the question here cannot compile hello.cs for gtk# using mono command prompt which was not answered.
- -pkg在Windows上可以使用吗?
- 我需要额外下载一些内容吗?
- 如果缩写路径表示〜10.8,则缩写路径提及〜1.8/ 我的单声道版本是2.10.8吗?
- Does -pkg work on Windows?
- Do I have to download something extra?
- The abbreviated path mentions ~1.8/ should it say something like ~10.8 being that my version of mono is 2.10.8?
推荐答案
这些是指出问题根源的有用答案.但是,到目前为止,最简单的解决方案是将Mono安装到名称中没有空格的文件夹中.安装时,只需选择"C:\ SDK \ Mono"之类的内容即可.问题已解决,不需要时髦的解决方法.
These were helpful answers for pointing out the root cause of the problem. However, the simplest solution by far is to install Mono into a folder that doesn't have spaces in the name. While installing, just select something like "C:\SDK\Mono". Problem solved, and no funky work-arounds necessary.
这篇关于Win 7 64位gmcs hello.cs -pkg:gtk-sharp-2.0上的Mono开发环境找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!