parsley72
parsley72

Reputation: 9087

How can I use Mono.Unix on Linux?

I have a C# app originally written in Windows that I'm now running in Linux on MonoDevelop. It works fine but now I need to recognise symbolic links. I found this answer but when I add:

using Mono.Unix;

I get the error "The type or namespace name 'Unix' does not exist in the namespace 'Mono'. Are you missing an assembly reference (CS0234)?"

Upvotes: 3

Views: 2747

Answers (1)

Jester
Jester

Reputation: 58822

You need to do what the error message says. Unintuitively, Mono.Unix lives in Mono.Posix.dll, so you need to add that as reference.

Upvotes: 5

Related Questions