mono

Mono and MEF Are they compatible.

The two M's. Are they compatible. I would like to use MEF, or not, depending if it can run in MONO. Thanks. Bob. ...

Mono: DllImport unable to load library '(null)'.

I'm trying to use the C# ZeroMQ bindings. However on Mono 2.8 and OSX 10.6.4, when I try to run an example application, I get a DLLImport error. Specifically: Unhandled Exception: System.DllNotFoundException: libzmq at (wrapper managed-to-native) ZMQ/C:zmq_init (int) at ZMQ+Context..ctor (Int32 io_threads) [0x00000] in <filename u...

ERROR XmlConfigurator error with Nant on mono 2.8

...

System.EntryPointNotFoundException error in SWIG on mono 2.8

I asked about an error for running Swig examples on mono 2.8 here. Adding "-arch i386" solved the issue with simple example, but when I tried to run the other examples, I got the following error, for example, with Examples/csharp/variables : Unhandled Exception: System.EntryPointNotFoundException: CSharp_ivar_set at (wrapper manage...

Database access in a web service

I'm currently working on a web service implementation to a combined web/desktop application (ie. access from different sources). Now there are two questions I can't really find an answer to: How would I access the database in the right way (static class? singleton? DI?)? I didn't find any information on using a Web Service in a DI con...

Does mono 2.8 support 'dynamic' keyword?

I tested IronPython on mono 2.8 with the code in the book Professional IronPython p.315 listing 15-3. using System; using IronPython.Hosting; using IronPython.Runtime; using Microsoft.Scripting.Hosting; namespace Method2 { class Program { static void Main(string[] args) { // Obtain the runtime. ...

Mono's equivalent to .NET Framework Debugging Control

The fusion workshop explains about the .NET Framework Debugging Control .ini file setting. I think this is only for .NET. Is there any equivalence to mono for debugging control? [.NET Framework Debugging Control] GenerateTrackingInfo=1 AllowOptimize=0 ...

Generate .config file automatically using .NET configuration on Windows 7/Mono

This site explains about searching assemblies using .config file that has relative search path. I couldn't find the .NET configuration utility on Windows 7, so I just copied the config file to see it works. But I wonder why I can't find the .NET configuration tool in Windows 7. Where is the .NET configuration utility or equivalent i...

Getting started with JSON in .net and mono

I would like to keep a custom configuration file for my app and JSON seems like an appropriate format*. I know that there are JSON libraries for .NET, but I couldn't find a good comparative review of them. Also, my app needs to run on mono, so it's even harder to find out which library to use. Here's what I've found: JSON.NET JSONSh...

What's the dumpbin equivalent to mono?

The windows utility of dumpbin can be used for digging into binary files for .NET exe/dll assemblies, as is explained in this site. dumpbin /clrheader lib.dll Dump of file lib.dll File Type: DLL clr Header: 48 cb 2.00 runtime version 210C [ 374] RVA [size] of MetaData Directory 9 flags 0 entry point token 0 [ ...

How can I make a nautilus-like sidebar using mono gtk#

I have been looking for weeks for a way to do this: I am working on a music player, and would like something like this: Library > Music (6) Videos (2) Playlists > new playlist... And so on. I am using mono and gtk#. I can't find a tutorial or anything, if someone could help me find on...

(Cross-Platform) 3D Programming with C# (mono)

I'm looking for a 3d engine (for games). I prefer C# with .net or Mono but C++ would also do it if I don't find anything for C#. I want to code programs for Windows and Linux. iPhone/Android would also be interesting for other projects. So far I found these engines (C#): Axiom - This one seems pretty fair and since it's a C# port of O...

Problem in creating package through "Package for Linux" in Mono 2.8

Hi, I am using mono 2.8 with Visual Studio 2008. I have installed "mono-2.8-gtksharp-2.12.10-win32-9". I am creating a windows application and its setup solution is working fine on Windows OS. But when I am creating package for Linux and follow the instruction from http://mono-tools.com/Package.aspx Step-1 to Step-5 are done but afte...

How to get the AssemblyVersion of a .Net file in Linux

Is there any way to obtain the AssemblyVersion of a .Net executable in Linux without using mono? What I am trying to have is a script or command that will let me obtain the AssemblyVersion on Linux boxes. I tried: #strings file.exe | grep AssemblyVersion but it only the string and not the number. Also checked with:#file file.exe but o...

DotNetOpenAuth - diagnosing "No OpenID Endpoint Found" on Mono

I'm running the mono branch build of DotNetOpenAuth and having problems with No OpenID Endpoint Found errors trying to authenticate using google, but not sure how to diagnose them. More info: Running the same mono branch build under Windows works. Authenticating with a local openid provider works fine (Windows and Linux). Authenticati...

I am using monodevelop and I am getting a "framework mono/.NET 4.0 not installed" error when I try to build.

The fun part is, I do have .NET 4.0 installed, as well as all GTK#. I thought maybe I installed it in the wrong order or something ridiculous, so I uninstalled and re-installed everything. I even tried installing plain old mono, and then installing monodevelop, but I still get that same error. ...

Mono code in ubuntu runs faster than the same code in Windows

I have a simple Application built using Mono on Ubuntu that prints out the entries of a list in sequence. The code takes about 6 ms to execute on Ubuntu, however the same code takes about 40 ms to execute on windows. Is there a reason why the same application code would run faster on Ubuntu than it would using the actual .net runtime on ...

How can I reduce boilerplate in my properties using attributes?

I'm playing around with Sqlite and Attributes, and I have properties throughout my code that look like this: const string FooKey = "foo"; ... string m_foo; [DatabaseColumn (FooKey)] public string Foo { get { return m_foo; } set { if (m_foo == value) return; m_foo = value; OnFooChanged (); /...

C# emacs mode questions.

I installed emacs C# mode. The .emacs file is as follows (require 'csharp-mode) (setq auto-mode-alist (append '(("\\.cs$" . csharp-mode)) auto-mode-alist)) (defun my-csharp-mode-fn () "function that runs when csharp-mode is initialized for a buffer." (setq default-tab-width 4) ) (add-hook 'csharp-mode-hook 'my-csharp-mode-f...

Looking for OAuth2 library for Mono

I'm looking for an OAuth2 library that works under Mono 2.6. Currently I'm using DotNetOpenAuth which is working fine for OpenID, but wondering if the DotNetOpenAuth OAuth2 release does (or will) work on Mono. ...