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.Android.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.Android.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.Android.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.Android.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.Android.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.Android.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.Android.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.Android.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.Android.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.Android.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.Android.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.Android.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.Android.csproj]
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: at
Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__1c.MoveNext()
[D:\projects\IskaApp\ISKE\Frontend\ISKEApp\ISKEApp.Android\ISKEApp.Android.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
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid