[Mono-list] Changing owner, group and permissions

Srdan Dukic srdan.dukic at gmail.com
Tue Apr 13 23:15:27 EDT 2010


On 14 April 2010 14:47, Jonathan Pryor <jonpryor at vt.edu> wrote:

> 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
>
> [0]
>
> http://www.go-mono.com/docs/index.aspx?link=M:Mono.Unix.UnixFileSystemInfo.GetFileSystemEntry(System.String)<http://www.go-mono.com/docs/index.aspx?link=M:Mono.Unix.UnixFileSystemInfo.GetFileSystemEntry%28System.String%29>
>
>
>
Thank you. I understand what I was doing wrong now. Was using
'-r:Mono.Posix' as a compiler option and in the code I had:

using Mono.Posix;

instead of:

using Mono.Unix;


Cheers
-- 
Srđan Đukić
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100414/dc750e9f/attachment.html 


More information about the Mono-list mailing list