mono

Get file type in Mono

How do i get the file type in Mono? i.e. "*.txt" => "Text Document", "*.jpg" => "JPEG Image". Similar to what SHFILEINFO.szTypeName returns with P/Invoke on Windows. ...

Have you seen library for flexible working with terminal(Unix like)?

Hi, everyone. Have you seen library for flexible working with terminal(Unix like)? I want to implement autocompletion, history, help params in my console application same operations you can see in the Unix terminals. C#, Mono library. Thanks. ...

What are general steps for me to port my project to mono?

I have a dll. and visual C++ source for it. (my dll is visual c++ wraper around some ffmpeg av* libs - another precompiled dll's) while in the same solution (.sln) I have C# project that uses my dll. what are general steps for me to port my project to mono? ...

Html.ValidationMessageFor on Mono has strange results

Hi, I'm a beginner at ASP.NET and I was learning how to use it through this tutorial. I use Linux, so I'm using Mono 2.6.7. I've had to stray off the path of the tutorial several times to get things to work under Mono (including using a patched version of MVC 2 that I would link to, but I am unable to as new users can only post one hyper...

C# Video Player Component with Stream Access for Decryption

Hello everyone, I am searching for a video player component (windows), usable in .Net (C#). What is required, is an access to the underlying stream, because parts of the video should be decrypted on the fly, and the decrypted video should never be stored on the hard disk. Ideally, it should also be portable for Linux and Mac. Anyone kn...

MySQL ExecuteNonQuery hanging in mono

I am in the process of moving from Visual Studio to Mono. I have a query which dumps about 190000 rows of a select statement into a a text file which I process from c#. Normally the whole thing goes well and is done in less than 7 seconds. On mono however, it gets to the ExecuteNonQuery, and the OUTFILE is created successfully of exac...

C# on Linux: How to enumerate the computers on the local network ?

How can I enumerate all machine names and IPs of remote computers in the local network ? Note: NOT on Windows (how to do that one finds via google), I need something that works on Linux ! Or a C/C++ sample would also do it, I can call libc from C#. ...

Developing Monotouch and XCode in paralell - how to set it up

Would it make sense to develop an app in Monotouch and With XCOde in parallel or with Monotouch as a prototype. (I would be learning both while developing). Since both use the same interface-builder. Could I just take the files and create a SDK version from the same interface files the same way just after? How can I set it up so that...

Active directory and LDAP libraries

I am trying to authenticate users to active directory with the Novell.Directory.Ldap libraries found in Mono. I know there is better ways than below, but given that I'm confined to Mono, these are the only supported routines as best I can see. Using the .NET libraries, I can authenticate a user with their samAccountName. using (Direc...

How to capture from webcam in Linux using Mono?

How can I capture a frame from a video-4-linux device (e.g.: /dev/video0) using Mono and C#? OS is Angstrom Linux running on BeagleBoard. ...

How to setup a Gtk# TreeModelFilter that filters an underlying TreeStore ?

I have read the "GtkSharp TreeView tutorial" wherein the author describes how to setup and use a TreeModelFilter for an underlying ListStore ( under the tutorial section "Filtering Data"). The technique doesn't seem to work for an underlying hierarchical TreeStore. I want to filter a multilevel TreeStore and show the results in a TreeV...

Adding reference to external .dll on Linux.

Hello, I'm building an F# application with Mono on a Linux box but need to reference a DLL from the F# Power Pack. How can I do this? ...

Can I develop a .NET application in Windows and deploy versions for Linux and Mac?

Is this possible with, e.g., MonoDevelop perhaps? ...

Mono WCF InstanceContextMode not working

I have a service that looks like this: [ServiceContract(SessionMode = SessionMode.Required)] public interface ILabListener { [OperationContract] byte[] GetChallenge(); ... ... [ServiceBehavior(IncludeExceptionDetailInFaults = true, InstanceContextMode = InstanceContextMode.PerSession)] class LabListener : ILabListener { ...

DllImport doesn't work as advertised in Mono (Linux, C#) (UPDATED)

I'm getting to know Mono development in Linux, in baby steps. I'm trying to call Linux C libraries. This page, in theory, tells me how, but when I type the code below in MonoDevelop 2.2.2 (Fedora 13), I get a "Parsing Error (CS8025)" in "private static extern int getpid();". Moreover, the help system doesn't work. EDIT: I just had to mo...

Why are some open source projects (eg. NHibernate/Mono) reluctant to apply patches that fix blocking issues?

Hi everyone, I encountered a very embarassing problem yesterday. My particular experience is with NHibernate and Mono, but I see similar cases involving other projects everywhere. While everyone seems to claim that NHibernate is working on Mono, I must admit that I actually tried yesterday, and the 3.0 trunk doesn't work. To me, this i...

Getting nice-looking widget sizing in MonoDevelop (Gtk#)

EDIT: Click here for the code. So I'm experimenting with interface building with MonoDevelop (version 2.4). I'm trying to get used to the Gtk concept of "containers within containers". I created a vbox with two... er... boxes, put a menu on the top box, and a table on the bottom one. I set the table to have two column and five rows. On ...

Cross-platform native/managed interface

I have a few native C++ libraries and such that I need to expose to managed (C#, in this case) code. I need to get as much speed out of it as possible. I would like to use some classes to simplify the interaction, which means mixed code, but that's not a requirement. What is a requirement is that it be cross-platform compatible, to Win...

Monodevelop Proxy Settings

How do I set the proxy settings of Monodevelop? I tried to modify the Monodevelop.exe.config with the following code <system.net> <defaultProxy useDefaultCredentials="true"> <proxy proxyaddress = "http://172.0.0.18:8080" bypassonlocal = "true"/> </defaultProxy> </system.net> ...

MS Access .mdb files in Mac OS X (or Mono)

Hi. Whats the best way to write to MS Access (.mdb) databases on Mac OS? I have a project that I'd like to port (quickly) to Mac OS and I'm thinking about using something cross-platform such as Mono. Can anybody recommend a good place to start? Do I really have to scrap my .mdb files and export into something else? I quite like the .m...