[Mono-list] Changing owner, group and permissions
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) method to
> create the appropriate subclass based on the filename.
> - Jon
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list