Bug 39097 - mkbundle --deps of VB.net program throws ArgumentException
Summary: mkbundle --deps of VB.net program throws ArgumentException
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: mkbundle ()
Version: 4.0.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-02-24 16:27 UTC by Joel Martin
Modified: 2017-08-31 14:49 UTC (History)
5 users (show)

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

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 for Bug 39097 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Joel Martin 2016-02-24 16:27:26 UTC
mkbundle --deps doesn't appear to work with VB.net programs. This same problem happens with both 3.8 and 4.2. C# not F# programs work fine with mkbundle --deps (version 3.8 and 4.2). I am running this on Ubuntu 15.04 (Vivid).


I have a simple hello world program:

```
Namespace Foo
    Class Hello
        Shared Function Main As Integer
            Console.WriteLine("Hello")
        End function
    End Class
End Namespace
```

I think compile it and attempt to create a standalone bundle:

```
vbnc hello.vb
mkbundle --deps hello.exe -o hello
```

mkbundle throws the following exception:

```
OS is: Linux
Sources: 1 Auto-dependencies: True

Unhandled Exception:
System.ArgumentException: Value does not fall within the expected range.
  at IKVM.Reflection.Fusion.CompareAssemblyIdentityPure (System.String assemblyIdentity1, Boolean unified1, System.String assemblyIdentity2, Boolean unified2, IKVM.Reflection.AssemblyComparisonResult& result) <0x40c53920 + 0x00e27> in <filename unknown>:0 
  at IKVM.Reflection.Universe.CompareAssemblyIdentity (System.String assemblyIdentity1, Boolean unified1, System.String assemblyIdentity2, Boolean unified2, IKVM.Reflection.AssemblyComparisonResult& result) <0x40c53870 + 0x0006f> in <filename unknown>:0 
  at IKVM.Reflection.Universe.GetLoadedAssembly (System.String refname) <0x40c40c60 + 0x000fb> in <filename unknown>:0 
  at IKVM.Reflection.Universe.LoadAssembly (IKVM.Reflection.RawModule module) <0x40c4b5f0 + 0x00043> in <filename unknown>:0 
  at IKVM.Reflection.Universe.LoadFile (System.String path) <0x40c41ae0 + 0x0004b> in <filename unknown>:0 
  at MakeBundle.QueueAssembly (System.Collections.Generic.List`1 files, System.String codebase) <0x40c4c840 + 0x00183> in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: Value does not fall within the expected range.
  at IKVM.Reflection.Fusion.CompareAssemblyIdentityPure (System.String assemblyIdentity1, Boolean unified1, System.String assemblyIdentity2, Boolean unified2, IKVM.Reflection.AssemblyComparisonResult& result) <0x40c53920 + 0x00e27> in <filename unknown>:0 
  at IKVM.Reflection.Universe.CompareAssemblyIdentity (System.String assemblyIdentity1, Boolean unified1, System.String assemblyIdentity2, Boolean unified2, IKVM.Reflection.AssemblyComparisonResult& result) <0x40c53870 + 0x0006f> in <filename unknown>:0 
  at IKVM.Reflection.Universe.GetLoadedAssembly (System.String refname) <0x40c40c60 + 0x000fb> in <filename unknown>:0 
  at IKVM.Reflection.Universe.LoadAssembly (IKVM.Reflection.RawModule module) <0x40c4b5f0 + 0x00043> in <filename unknown>:0 
  at IKVM.Reflection.Universe.LoadFile (System.String path) <0x40c41ae0 + 0x0004b> in <filename unknown>:0 
  at MakeBundle.QueueAssembly (System.Collections.Generic.List`1 files, System.String codebase) <0x40c4c840 + 0x00183> in <filename unknown>:0 
```