[Mono-dev] Strong-named assembly built with Linux Mono not working with Windows VB Web Application
Dean Brettle
dean at brettle.com
Thu Oct 2 02:09:23 EDT 2008
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/20081001/c0ce64ca/attachment.html
More information about the Mono-devel-list
mailing list