windows mono.unix.native 在哪里

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8408467/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:36:34  来源:igfitidea点击:

Where is mono.unix.native

c#windowslinuxmono

提问by Simon Parker

I have inherited a C# web app (and web services) which is being compiled on Windows and run on Mono on a Linux box. I need to do some file permissions magic, which looks like it involves including the assembly: mono.unix.native.

我继承了一个 C# web 应用程序(和 web 服务),它正在 Windows 上编译并在 Linux 机器上的 Mono 上运行。我需要做一些文件权限魔术,看起来它涉及包括程序集:mono.unix.native。

So, can I reference this on my windows box, and, if so, where is it?

那么,我可以在我的 Windows 框中引用它吗?如果可以,它在哪里?

回答by poupou

Mono.Unix.Nativeis a namespace. The assembly where it's located is named Mono.Posix.dll.

Mono.Unix.Native是一个命名空间。它所在的程序集名为Mono.Posix.dll.

I thinkit's shipped with Mono for Windows - even if it's unlikely to be used there.

认为它与 Mono for Windows 一起提供 - 即使它不太可能在那里使用。

回答by Orn Kristjansson

Your dealing with some low level Mono classes. I think you need to link to Mono. check this.

您处理一些低级 Mono 类。我认为您需要链接到 Mono。检查这个。

The Mono.Unix.Native namespace contains low-level wrapper classes, structures, and enumerations which are accessible from the Mono.Unix.Native.Syscall and Mono.Unix.Native.Stdlib classes, which are a low-level wrappers over ANSI C, POSIX and Unix system calls and library functions.

Mono.Unix.Native 命名空间包含可从 Mono.Unix.Native.Syscall 和 Mono.Unix.Native.Stdlib 类访问的低级包装类、结构和枚举,它们是 ANSI C 上的低级包装、POSIX 和 Unix 系统调用和库函数。

http://docs.go-mono.com/index.aspx?link=N:Mono.Unix.Native

http://docs.go-mono.com/index.aspx?link=N:Mono.Unix.Native