[Mono-list] MBas compiled in VS.NET could not compile simple program

Jonathan Pryor jonpryor@vt.edu
Sat, 27 Sep 2003 01:05:37 -0400


Shall I point you to FAQ #62, under the Compatibility section?

	...

	Furthermore, a 100% .NET application must not contain 
	non-standard data streams in the assembly. For example, Visual 
	Studio .NET will insert a #- stream into assemblies built under 
	the "Debug" target. This stream contains debugging information 
	for use by Visual Studio .NET; however, this stream can not be 
	interpreted by Mono (unless you're willing to donate support).

Granted, the FAQ is ENORMOUS, so it's likely that not everybody reads
all of it, but it's somewhat depressing to go off and write such
wonderful entries and have them be ignored...  :-/

 - Jon

(The author/updater of several FAQs in the Compatibility section...)

On Fri, 2003-09-26 at 23:31, Simon Waite wrote:
> Mono barfs with
> .... non-standard metadata heap #-.
> on .NET generated assemblies created via incremental compiling,
> as I remember from earlier comments Miguel states that this heap
> is of a non-standard format, and isn't going to be supported by mono.
> 
> Website maintainers: Perhaps this should be in the FAQ ?
> 
> 
> Regards,
> 
> Simon
> 
> ----- Original Message ----- 
> From: "Ondrej Krsko" <ondrej.krsko@zoznam.sk>
> To: "Mono List" <mono-list@lists.ximian.com>
> Cc: "A Rafael D Teixeira" <rafaelteixeirabr@hotmail.com>
> Sent: Friday, September 26, 2003 3:30 PM
> Subject: Re: [Mono-list] MBas compiled in VS.NET could not compile simple
> program
> 
> 
> > > For now, you'll probably need to run mbas with mono runtime and
> > > class-libraries, it seems like it is trying to use incompatible .NET
> > > libraries.
> > > try: Mono mbas.exe Module1.vb
> >
> > After running mbas.exe with mono runtime this error message appears:
> >
> > Assembly 'mbas.exe' has the non-standard metadata heap #-.
> > Recompile it correctly (without the /incremental switch or in Release
> > mode). cannot open assembly mbas.exe
> >
> > I assume this is a bug in mono.
> > I tried to compile also this simple program (with mbas compiled in
> vs.net):
> >
> > Module Module1
> >     Sub Main()
> >     End Sub
> > End Module
> >
> > but mbas shows this error (reported in /mbas/attribute.cs):
> >
> > Module1.vb(6) error BC0246: Could not find attribute
> > 'Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute' (are you
> > missing a using directive or an assembly reference ?)
> > Compilation failed: 1 Error(s), 0 warnings
> >
> > Maybe a little hacking could solve this problem. I was trying to find
> > solution few days, but I gave up - I'm not too good in ".NET inners".
> > Any idea could help me!
> >
> > BR,
> > Ondrej Krsko
> >
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list