Bug 11556 - LinkAssemblies fails Visual Studio2012 Xamarin.Android 4.6.02000
Summary: LinkAssemblies fails Visual Studio2012 Xamarin.Android 4.6.02000
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.6.x
Hardware: PC Windows
: Highest normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-04-03 13:25 UTC by Jeremy Kolb
Modified: 2014-01-22 06:54 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
diagnostic msbuild output (1.53 MB, text/plain)
2013-04-03 13:45 UTC, Jeremy Kolb
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Jeremy Kolb 2013-04-03 13:25:23 UTC
Since upgrading to the latest beta I can't build anything:


5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018: The "LinkAssemblies" task failed unexpectedly.
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Collections.Generic.Collection`1.get_Item(Int32 index)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Cecil.Mdb.MdbReader.ReadLocalVariables(MethodEntry entry, MethodBody body, Scope[] scopes)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Cecil.Mdb.MdbReader.Read(MethodBody body, InstructionMapper mapper)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Cecil.Cil.CodeReader.ReadMethodBody()
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Cecil.MethodDefinition.<get_Body>b__2(MethodDefinition method, MetadataReader reader)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Cecil.MethodDefinition.get_Body()
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Linker.Steps.MarkStep.ProcessQueue()
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Linker.Steps.MarkStep.Process()
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Mono.Linker.Pipeline.Process(LinkContext context)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context)
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Xamarin.Android.Tasks.LinkAssemblies.Execute()
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(818,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
========== Build: 4 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Comment 1 Jeremy Kolb 2013-04-03 13:45:21 UTC
Created attachment 3736 [details]
diagnostic msbuild output
Comment 2 Jeremy Kolb 2013-04-03 14:25:35 UTC
This occurs with both "Sdk Assemblies Only" and "Sdk Assemblies and User Assemblies".
Comment 3 Jonathan Pryor 2013-05-23 14:20:39 UTC
This should have been fixed in 4.6.3 or 4.6.4. Please re-open if the issue isn't fixed.
Comment 4 Prashant manu 2014-01-22 06:54:04 UTC
I have checked this issue with following builds:

All Windows
VS 2013/2012/2010
X.Android 4.13.0-39

I am successfully able to build application when using 'sdk assemblies only' OR 'sdk and user assemblies'