[Mono-list] Changing owner, group and permissions

Jonathan Pryor jonpryor at vt.edu
Tue Apr 13 22:47:14 EDT 2010

On Wed, 2010-04-14 at 12:11 +1200, Srdan Dukic wrote:
> Now, when I go to try and compile my program, I get the following
> error:
> gmcs DirCreator.cs -r:Mono.Unix -out:bin/DirCreator.dll
> -target:library                         
> error CS0006: cannot find metadata file `Mono.Unix'

You're confusing namespaces with assemblies.  They are not the same.

You need to reference Mono.Posix.dll, and use the Mono.Unix namespace
within Mono.Posix.dll.

Furthermore, UnixFileSystemInfo is the base type for UnixDirectoryInfo,
UnixFileInfo, and UnixSymbolicLinkInfo.  Creating instances of any of
these types will allow you to invoke UnixFileSystemInfo methods on them,
or use the UnixFileSystemInfo.GetFileSystemEntry(string)[0] method to
create the appropriate subclass based on the filename.

 - Jon


More information about the Mono-list mailing list