mono

Invoke "internal extern" constructor using reflections

Hi, I have following class (as seen through reflector) public class W : IDisposable { public W(string s); public W(string s, byte[] data); // more constructors [MethodImpl(MethodImplOptions.InternalCall)] internal extern W(string s, int i); public static W Func(string s, int i); } I am trying to call "inter...

bool as object vs string as object testing equality

I am relatively new to C# and I noticed something interesting today that I guess I have never noticed or perhaps I am missing something. Here is an NUnit test to give an example: object boolean1 = false; object booloan2 = false; Assert.That(boolean1 == booloan2); This unit test fails, but this one passes: object string1 = "string"; o...

Can mono produce valid xhtml?

I installed Mono and MonoDevelop 2.2 on my Windows PC. Created a default C# ASP.NET Web Application project. Here's the Default.aspx it created: <%@ Page Language="C#" Inherits="test.Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head run...

Mono and Apache are serving files with no ASP.NET processing

On a new Rackspace Cloud Server box (Ubuntu 9.10), I've installed apache2, libapache2-mod-mono, and mod-mono-server2. I've disabled mod_mono and enabled mod_mono_auto, but whatever I do, requests for Default.aspx return the actual contents of Default.aspx (in this case, "This is a marker file generated by the precompilation tool, and sh...

WCF Mono - BasicHttpBinding with SSL

I'm trying to port an existing WCF client application to run on Linux under Mono. Right now I'm testing everything out, figuring out what works on Mono and what doesn't. The client makes a super simple call over basicHttpBinding. It works great, until I enable SSL (that is, specify BasicHttpSecurityMode.Transport in the binding). Runn...

DynamicMethod in Cecil

Hello guys, Is there anything similar to Reflection.Emit.DynamicMethod in Cecil? Thanks. DynamicMethod Edit: What about for the following things? EmitCall (e.g. IL.EmitCall(OpCodes.Callvirt, GetBuildKey, null); IL.Emit(OpCodes.Unbox_Any, dependencyType); ) LocalBuilder (e.g. LocalBuilder resolving = ilContext.IL.DeclareLoc...

F#'s fshtmldoc.exe using Mono/OS X

This is doubtless something obvious, but downloading the F# PowerPack from codeplex and running fshtmldoc produces this error: clements$ mono ./fshtmldoc.exe FSharp.PowerPack.dll Processing 'FSharp.PowerPack.dll'... Unexpected failure while writing HTML docs: An exception was thrown by the type initializer for Microsoft.FSharp.Metadata....

License problem embedding Mono?

I'd like to embed Mono into an .exe file but the problem is the license, because a LGPL library can only be linked with LGPL code. However, I'd like to build a commercial app, so I ask if is possible to use a stub that launches a DLL version of the Mono runtime and executes my app. Or do you know a better way to do this? I need a cross-...

Anybody else using MonoDevelop?

I'm starting a new project in MonoDevelop, and I want to see how other projects are using it. I tried searching through SourceForge, code.google.com, etc., but mostly I was just finding things like add ins or something related to MonoDevelop itself. So is there anyone else using MonoDevelop, especially open source? ...

Silverlight/Moonlight on Android devices

Hi! I just got my first Android device, I love it... I also love the fact that you can create your own applications and distribute them as you please. I've read a little bit about Monodroid, and also that apparently Microsoft wants to put Silverlight on these devices, although there is not too much information about either of them... b...

What's the best way of playing media files (esp. audio) with Mono/C#?

I'm trying to create something that will be playing some sound and music for some things in Mono+C#, but I'm not sure what the best thing will be for that. I'm trying to make it usable with things like Ogg Vorbis, MP3s, and wave files. My primary platform will be Linux, although a cross platform solution would be nice. Anyone have any...

How to create MSIL files from dll/exe

I have some .net dll's and Exe's. I need to pass MSIL files to mono project. How do i convert these Dll's to MSIL files? ...

Fixing permissions after FTPing ASP.NET code to a Linux system

First off, I'm running Mono to run ASP.NET on Linux, but that's not the question. It appears that, every time I clear out my application directory and upload, I have to go back in and fix the permissions. What I'm doing is chmod -R -c 755 /var/www/* ...and there are two questions. What's the deal with having to do this every time...

Where can I download compiled builds of MonoMac?

Miguel de Icaza announced a new project today called MonoMac, to develop apps for the Mac using Mono and C#: http://tirania.org/blog/archive/2010/Apr-19.html In the post, he provides links to the subversion repositories, but are there any builds of it available for download? ...

Custom message headers in WCF on Mono

I'm making WCF calls from a Mono client running on Ubuntu (Mono 2.6). I can't seem to add a custom header to my messages. I have tried two different ways: Using a [MessageContract] and [MessageHeader] attributes on a custom class Adding the header to the outgoing messages programmatically, e.g. MessageHeader mhg = new MessageHeader("...

Run VB.NET on Mono

Which version of Mono do I need to convert and run the Windows applications that I developed using VB.NET that came along with .NET 3.5, in Ubuntu? ...

Random GUI errors using C# Mono on Mac OS X

I'm developing an application in C# (Windows Forms), which uses Mono to run on Mac OS X. It contains some dynamic controls, for example a custom groupbox which contains some labels and textboxes, a button, etc.These boxes can both be added and removed dynamically. My CustomGrpBx inherits from GroupBox and this is the contructor I use: ...

Is the Reactive Framework (RX) available for use in Mono yet?

Been searching but the only thing I found was http://evain.net/blog/articles/2009/07/30/rebasing-system-reactive-to-the-net-clr which I got to work, but it feels like there should be a simpler way, specially since rx was first release back in mid 09. ...

does mono emulate .NET, or is it just a framework thats compatible with .NET languages?

Like, if I write a program on windows using C# and the .NET framework, then drop the code on a Linux machine running mono, will it run exactly the same? Or would I have to rewrite it to work with Mono's libraries? ...

Error in Mono Compiler: Files in libraries or multiple-file applications must begin with a namespace or module declaration

I am trying to compile this example in mono on ubuntu. However I get the error wingsit@wingsit-laptop:~/MyFS/kitty$ fsc.exe -o kitty.exe kittyAst.fs kittyParser.fs kittyLexer.fs main.fs Microsoft (R) F# 2.0 Compiler build 2.0.0.0 Copyright (c) Microsoft Corporation. All Rights Reserved. /home/wingsit/MyFS/kitty/kittyAst.fs(1,1): er...