[Mono-dev] Mono support for .NET 1.0 (was Possible bug in System.Windows.Forms)

Robert Jordan robertj at gmx.net
Sun Sep 2 14:34:43 EDT 2007


Hi,

Charlie Poole wrote:
> Hi Valentin,
> 
>> your app seems to target .Net 1.0 which is not supported by Mono.
>> Recompile it against .Net 1.1 or 2.0 and everything should be fine :-)
> 
> Is this documented somewhere? It might explain the hard failure in my
> table at http://nunit.org/?p=platformSupport and I'd just as soon not
> expend any more effort on 1.0 than I have to.

I'm using assemblies compiled against "1.0.3300.0" since ages and
I've never seen this error.

Mono is usually mapping the version of system assemblies:

using System;
using System.Reflection;

class Test
{
	// strong name from OP's  error message
	const string WinForms = "System.Windows.Forms, Version=1.0.3300.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089";

	static void Main ()
	{
		Console.WriteLine (Assembly.Load (WinForms).FullName);
	}
}

Output:

System.Windows.Forms, Version=1.0.5000.0 ...

or

System.Windows.Forms, Version=2.0.0.0 ...

when compiled with gmcs.


Robert




More information about the Mono-devel-list mailing list