[mono-android] Problem when trying to deploy with Linking enabled

Jonathan Pobst monkey at jpobst.com
Thu Nov 10 11:50:56 EST 2011


Hello, it appears you are trying to use an library that was not compiled 
against the MonoDroid profile.

Specifically, the System.Diagnostic.Trace class does not exist in the 
MonoDroid profile.

You will probably want to recompile your library against the MonoDroid 
profile so you can remove things that do not exist in MonoDroid.

Hope this helps!
Jonathan


On 11/9/2011 2:18 AM, André van der Walt wrote:
> 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)
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>



More information about the Monodroid mailing list