[Mono-dev] Strong-named assembly built with Linux Mono not working with Windows VB Web Application

Rolf Bjarne Kvinge rolflists at ya.com
Fri Oct 3 10:51:32 EDT 2008


Hi,

 

Please file a bug report at bugzilla.novell.com, my guess would be that it's
a bug in mcs (but I've been wrong  before J)

 

Rolf

 

From: dean.brettle at gmail.com [mailto:dean.brettle at gmail.com] On Behalf Of
Dean Brettle
Sent: jueves, 02 de octubre de 2008 8:09
To: Rolf Bjarne Kvinge
Cc: mono-devel-list
Subject: Re: [Mono-dev] Strong-named assembly built with Linux Mono not
working with Windows VB Web Application

 

On Wed, Oct 1, 2008 at 10:36 PM, Dean Brettle <dean at brettle.com> wrote:

I noticed the following difference:


[mono20] ~/tmp/mywebcontrol @ monodis --assembly
MyWebControlProject.Mono.dll | grep Flags
Flags:         0x00000000
[mono20] ~/tmp/mywebcontrol @ monodis --assembly MyWebControlProject.Net.dll
| grep Flags
Flags:         0x00000001

Since this is a strong-named assembly containing the public key, isn't
0x00000001 the correct value for Flags?  If MS's VB.NET compiler requires
that flag to be set for strong-named assemblies, then that would explain the
problem.

I'd like to test that hypothesis by changing the Flags value, but I don't
know how to do that off-hand.  Using .NET's sn.exe to resign the assembly
built with Mono, didn't change the Flags value. 


Adding the following to AssemblyInfo.cs did change Flags to 0x00000001, and
DID allow the custom control to be used in a VB.NET Web Application project.

[assembly: AssemblyFlags(AssemblyNameFlags.PublicKey)] 

So, is the fact that this is necessary a bug in mcs, MonoDevelop, or
something else?

--Dean

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081003/0ea11352/attachment.html 


More information about the Mono-devel-list mailing list