[mono-android] Problem when trying to deploy with Linking enabled
André van der Walt
andre at diro.co.za
Wed Nov 9 03:18:06 EST 2011
Hi All
I am trying to deploy an application with linking enabled to reduce the
package size. My application runs fine with no linking, but the moment
i choose any of the 2 linking options, i get this error.
Please Help
Thanks
Andre
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(5,5): Error
MSB4018: The "LinkAssemblies" task failed unexpectedly.
Mono.Cecil.ResolutionException: Failed to resolve System.Void
System.Diagnostics.Trace::Assert(System.Boolean,System.String)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options,
LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at
Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy
engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask,
ITask task, Boolean& taskResult) (MSB4018)
More information about the Monodroid
mailing list