[Mono-list] mono under Debian : unresolved type ...

Paolo Molaro lupus@ximian.com
Tue, 11 Mar 2003 10:44:21 +0100


On 03/10/03 David Marsal wrote:
> I try to compile the following hello.cs with mcs :
> 
> using System;
> public class HelloWorld {
>   static void Main() {
>     Console.WriteLine("Hello World!");
>   }
> }
> 
> 
> but when I launch mcs I get :
> 
> unresolved type: [mscorlib]System.Reflection.MemberFilter
> unresolved type:
> [mscorlib]System.Diagnostics.SymbolStore.ISymbolDocumentWriter
> unresolved type:
[...]

You have probably installed pnet or ran a command that replaces
the mono CLR execution engine with the pnet one. pnet can't run
mcs so you can download and run (as root) this script:
	http://www.debianplanet.org/mono/mono.init

to get back to using mono to run .net programs. I include the script
here as well:

==cut cut==
#!/bin/sh
# Copyright (C) 2002 Alp Toker <alp@atoker.com>
# Licensed under the terms of the GNU GPL

if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then
	/sbin/modprobe binfmt_misc
	mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
fi

if [ -e /proc/sys/fs/binfmt_misc/register ]; then
	echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
else
	echo "No binfmt_misc support"
	exit 1
fi

exit 0
==cut cut==

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better