Re: [Banshee-List] Cannot compile with ipod-sharp



You need to set the target runtime version to 2.0: 

Right click on the project name, click on "Options", click on "Runtime
Options", set "Runtime version" to 2.0.

- Brian

On Sun, 2007-09-16 at 19:13 +0400, Антон Епишев wrote:
> Hello,
> 
> I'm new to your list so sorry if i break some rules.
> I've got little problem. I've installed libipod-cil in my Ubunty and
> tried to compile little application with ipod-sharp.dll.
> Here it is:
> 
> ----------------
> using System;
> using IPod;
> 
> namespace iPodEXO
> {
> 	class MainClass
> 	{
> 		public static void Main(string[] args)
> 		{
> 			Device pod = new Device("/media/POD");
> 		}
> 	}
> }
> ------------------
> 
> IDE i've used is MonoDevelop. The compilers output is:
> Exception caught by the compiler while compiling:
>    Block that caused the problem begin at:
> /home/n013e/Projects/iPodEXO/Main.cs(9,22):
> System.TypeLoadException: Could not load type
> 'System.Collections.Generic.Dictionary`2' from assembly 'mscorlib,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
> 
> 
> ** (/usr/lib/mono/1.0/mcs.exe:5184): WARNING **: The class
> System.Collections.Generic.Dictionary`2 could not be loaded, used in
> mscorlib, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089
> 
> Unhandled Exception: System.TypeLoadException: Could not load type
> 'System.Collections.Generic.Dictionary`2' from assembly 'mscorlib,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
>   at <0x00000> <unknown method>
>   at Mono.CSharp.VariableInfo..ctor (Mono.CSharp.LocalInfo local_info,
> Int32 offset) [0x00000]
>   at Mono.CSharp.VariableMap..ctor (Mono.CSharp.VariableMap parent,
> Mono.CSharp.LocalInfo[] locals) [0x00000]
>   at Mono.CSharp.VariableMap..ctor (Mono.CSharp.LocalInfo[] locals) [0x00000]
>   at Mono.CSharp.Block.ResolveMeta (Mono.CSharp.ToplevelBlock
> toplevel, Mono.CSharp.EmitContext ec, Mono.CSharp.Parameters ip)
> [0x00000]
>   at Mono.CSharp.ToplevelBlock.ResolveMeta (Mono.CSharp.EmitContext
> ec, Mono.CSharp.Parameters ip) [0x00000]
>   at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
> anonymous_method_host, Mono.CSharp.ToplevelBlock block,
> Mono.CSharp.Parameters ip, IMethodData md, System.Boolean&
> unreachable) [0x00000]
> 
> Can anybody help me to make things work?
> _______________________________________________
> Banshee-list mailing list
> Banshee-list gnome org
> http://mail.gnome.org/mailman/listinfo/banshee-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]