On 14 April 2010 14:47, Jonathan Pryor <[email protected]> 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ć
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
