mono

Detecting symbolic links and pipes in Mono

允我心安 提交于 2019-12-22 10:34:43
问题 Is there a way to distinguish special files like symbolic links and pipes using C# and Mono? The application is a multi-platform backup tool, so I want to avoid using interop libraries or 'C' dll's and look for a straight managed code solution. 回答1: After digging around some more, I've found a solution. Adding a reference to Mono.Posix to a project gives access to some of the Unix file system attributes. Mono.Unix.UnixSymbolicLinkInfo i = new Mono.Unix.UnixSymbolicLinkInfo( path ); switch( i

is it possible to run clickonce application with Mono?

荒凉一梦 提交于 2019-12-22 09:10:00
问题 i'm developing clickonce application which, potentially, i would like to distribute on Mac platform. I know i can compile .Net application wtih Mono - and it will work on Mac. But can I use clickonce as the installer then? thanks! 回答1: I don't think Mono team has ever implemented the ClickOnce .NET APIs that make this possible. However, I think it should be kind of straightforward to implement them. That being said, it might be wiser to just use the Mac backend for Squirrel. (Which is a

Is it possible to use Razor as a standalone library (without any asp.net business) on OSX (via Mono)

非 Y 不嫁゛ 提交于 2019-12-22 08:31:48
问题 I would like to write a proof of concept MonoMac app which renders html "Views" using c# and Razor. Is this possible? If not, does anyone recommend any other Templating engines that compare to the simplicity of Razor. I don't mind writing it in Objective-C if I have to, but Mono would be simpler. 回答1: I think you may be interested in this project. You just have to download zip which consists of two DLLs, reference them in your project and examples like these just works. Have in mind that you

Degraded allocation. Consider increasing nursery-size if the warning persists

爱⌒轻易说出口 提交于 2019-12-22 08:29:14
问题 I am getting the following message when opening a new screen I have added to my app Warning: Degraded allocation. Consider increasing nursery-size if the warning persists. Im assuming there is a build argument I can use to increase the nursery size. Does anyone know what the argument is and how to format it? 回答1: You're probably pinning too many objects, or using too many threads. According to http://www.mono-project.com/Working_With_SGen#Nursery_Size you can set the MONO_GC_PARAMS

Can I reload an assembly in Mono CSharpRepl?

元气小坏坏 提交于 2019-12-22 08:23:14
问题 So I'm coming from a Python background and starting to get into C# and Mono on my Mac. I've just recently found the Mono CSharpRepl tool and would like to use it to achieve a similar workflow that I have in Python which includes repeatedly invoking 'reload(module)' as I fix errors in my Python code. Does Mono's CSharpRepl have similar functionality? Currently I've just been quitting, restarting, and then invoking 'LoadAssembly()' and 'using' statements again which is a pain. 回答1: $ csharp

Embedded C# web server with easy SSL support

﹥>﹥吖頭↗ 提交于 2019-12-22 08:19:28
问题 I am looking for an embedded Web Server with out of the box SSL support, preferably configured from a command line or some easy config, without the need to change system wide config (like Registry). It should also work on mono. 回答1: Have you tried my old server http://webserver.codeplex.com? It supports SSL and at least used to run on MONO. I'm also (slowly) building a new one, it got no SSL support yet (but's not that hard to implement by yourself): http://github.com/jgauffin/griffin

Mkbundle Mono Assembly binding redirection

时光怂恿深爱的人放手 提交于 2019-12-22 08:00:33
问题 I have a sample .NET application that runs fine on windows, and my Ubuntu environment using mono. I am trying to use Mkbundle to create a single native assembly so I can docker containerize it using busybox and keep the size small instead of the usually huge bloated containers. The problem I am running into is with Json.net, I think its due to assembly binding redirection from the app.config file, anyone else ran into this? <?xml version="1.0" encoding="utf-8"?> <configuration> <startup>

Building mono with android ndk standalone toolchain (android ndk r8e)

橙三吉。 提交于 2019-12-22 07:42:00
问题 I'm attempting to build mono using the ndk standalone toolchain from the android ndk (version r8e), but I am unable to complete the build. I setup my standalone environment like so: export SYSROOT=/home/jeremybell/Desktop/android-ndk-r8e/platforms/android-14/arch-arm /home/jeremybell/Desktop/android-ndk-r8e/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=./android-14-toolchain Next, I configure mono. I'm using something similar to the example shown here: http:/

Building mono with android ndk standalone toolchain (android ndk r8e)

对着背影说爱祢 提交于 2019-12-22 07:40:09
问题 I'm attempting to build mono using the ndk standalone toolchain from the android ndk (version r8e), but I am unable to complete the build. I setup my standalone environment like so: export SYSROOT=/home/jeremybell/Desktop/android-ndk-r8e/platforms/android-14/arch-arm /home/jeremybell/Desktop/android-ndk-r8e/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=./android-14-toolchain Next, I configure mono. I'm using something similar to the example shown here: http:/

XSP Configure fails due to mono module dependancy

喜夏-厌秋 提交于 2019-12-22 07:06:18
问题 I have mono installed in my RHEL 5 machine which is visible as follows: which mono /usr/local/bin/mono mono -V Mono JIT compiler version 2.10.2 (tarball Wed Oct 16 10:33:49 CDT 2013) Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: Included Boehm (with typed GC and Parallel Mark) When i try to run the configure script for xsp, it