cureos / aforge

PCL version of AForge.NET Framework, https://code.google.com/p/aforge/
Other
125 stars 96 forks source link

Unable to build Xamarin Classic with registered version shims #19

Closed kmikhai closed 9 years ago

kmikhai commented 9 years ago

Only fails when we replace Shim.Drawing.dll with licensed versions

Error 68 The "LinkAssemblies" task failed unexpectedly. Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Drawing.Graphics System.Drawing.Graphics::FromImage(System.Drawing.Bitmap)' (defined in 'AForge.Imaging, Version=2.2.5.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b') from 'AForge.Imaging, Version=2.2.5.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Drawing.Graphics System.Drawing.Graphics::FromImage(System.Drawing.Bitmap) 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() --- End of inner exception stack trace --- at Xamarin.Android.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args) at Xamarin.Android.Tasks.LinkAssemblies.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext() ACS.FundRaising.Android

Fails with the following

error1

Does not fail with:

error2
anders9ustafsson commented 9 years ago

@kmikhai Thanks for this thorough report! I will look into this issue as soon as possible.

Regards, Anders @ Cureos

kmikhai commented 9 years ago

Hi. Any updates or additional info we need to provide? This sort of leaves us unable to produce a licensed production build. The issue does not appear to exist with unlicensed dll's

anders9ustafsson commented 9 years ago

I will try to look into the issue tomorrow when I have full access to a build host. Are you sure that the issue is limited to the "full" DLLs? And you are using the Classic API?

kmikhai commented 9 years ago

a) yes the issue only appears when we try to replace the nuget provided shim dll's with licensed versions

b) Yes we're using Xamarin Classic, MVVMCross.

anders9ustafsson commented 9 years ago

@kmikhai I have now made a fix in the Shim library of an issue that I suspect has been causing your build failure (cureos/shim#31). Please update Shim to the latest version from NuGet (1.0.2.50909) and let me know if your build problems are solved or remain.

kmikhai commented 9 years ago

Hi. Where do we get the licensed version of the updated shims? Last time when we purchased the license it was through a one drive link

Sent from my iPhone

On Sep 9, 2015, at 4:26 AM, Anders Gustafsson notifications@github.com<mailto:notifications@github.com> wrote:

@kmikhaihttps://github.com/kmikhai I have now made a fix in the Shim library of an issue that I suspect has been causing your build failure. Please update Shim to the latest version (1.0.2.50909) and let me know if your build problems are solved or remain.

Reply to this email directly or view it on GitHubhttps://github.com/cureos/aforge/issues/19#issuecomment-138852608.

Mike Katchourine | Director, Common Integration Services American Cancer Society, Inc. 8400 Silver Crossing Oklahoma City, OK 73132 Phone: 405.782.1112 cancer.orghttp://www.cancer.org | 1.800.227.2345

This message (including any attachments) is intended exclusively for the individual to whom it is addressed and may contain proprietary, protected, or confidential information. If you are not the named addressee, you are not authorized to read, print, copy, or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately.

anders9ustafsson commented 9 years ago

If you have the link available, it should still work for you. If you do not, please e-mail me at licenses@cureos.com and I'll forward the link again.