You could try using a decompiler like Reflector to look at the
assemblies it references.
You want to ensure that the mscorlib.dll referenced is version 2.0.5.
Jonathan
On 4/18/2012 2:00 AM, Willem Meints wrote:
Hmm, I did compile the assemblies of all my libraries using the MfA profile.
It must be either the xzing library or the NewtonSoft library that is causing
the issue.
Is there any way to find out which of these is causing the problem?
-----Original Message-----
From: Jonathan Pobst [mailto:mon...@jpobst.com]
Sent: dinsdag 17 april 2012 16:06
To: Discussions related to Mono for Android
Cc: Willem Meints
Subject: Re: [mono-android] Troubles with linking of my app
This generally means you are trying to use an assembly that is not compiled for
the MFA profile.
In the .NET Framework 3.5, System.Func is in System.Core.dll In MFA (and .NET
4.0), System.Func is in mscorlib.dll.
You will need to recompile your assembly using the MFA profile.
Jonathan
On 4/17/2012 8:41 AM, Willem Meints wrote:
Hi,
I'm trying to get an app ready for the Android marketplace, but run
into a small problem with it.
When I build the package, I get the following error from the Linker:
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: The "LinkAssemblies" task failed unexpectedly.
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: Mono.Cecil.ResolutionException: Failed to resolve
System.Func`1
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at Mono.Linker.Steps.MarkStep.MarkType(TypeReference
reference)
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at Mono.Linker.Steps.MarkStep.MarkField(FieldReference
reference)
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at Mono.Linker.Steps.MarkStep.InitializeFields(TypeDefinition
type)
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition
type)
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at
Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition
assembly)
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at Mono.Linker.Steps.MarkStep.Initialize()
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at Mono.Linker.Pipeline.Process(LinkContext context)
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at MonoDroid.Tuner.Linker.Process(LinkerOptions options,
LinkContext& context)
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at Xamarin.Android.Tasks.LinkAssemblies.Execute()
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITas
kExecutionHost.Execute()
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at
Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__1c.Mov
eNext()
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.And
roid.csproj]
I do use Func<T> in my code, in fact about 8 times. But I don't think
that should be a problem.
Any ideas?
Kind regards,
Willem Meints
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid