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) _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
