Re: Strong Names and LGPL

From: Ivan Medvedev [MS] (ivanmed_at_online.microsoft.com)
Date: 01/17/05


Date: Mon, 17 Jan 2005 10:18:51 -0800

Mike -
in theory this is definitely possible, but I don't know of any tools that
would go and do it. There are several options that you may want to
investigate:
- use ildasm to disassemble and then ilasm it back again, this time with a
strong name;
- there is a set of unmanaged interfaces for reading/writing assembly
metadata in the runtime; it is possible using them to write a tool that does
what you need;
- in Whidbey there is probably going to be (or may be already in the Beta, I
don't know for sure) a possibility to use Reflection to fully read IL and
the metadata, so it should be possible to use the combination of Reflection
and Reflection Emit to roundtrip an assembly and sign it then.
--Ivan
http://blogs.dotnetthis.com/Ivan

"Mike" <Mike@discussions.microsoft.com> wrote in message
news:62839F8C-547A-4190-93E0-7EBD2F7E4695@microsoft.com...
> Is it possible to strong name an assembly that was compiled without a snk?
> I
> am asking because we are using an LGPL licensed codebase that has no
> associated keyfiles and will be used by an assembly that will reside in
> the
> GAC. What options exist for this scenario?
>
> Thanks in advance,
>
> Mike



Relevant Pages

  • Re: Reflection - When to use?
    ... | If I am the sole author of an application, I already know the metadata ... translates those objects into SQL commands. ... I write a storage mechanism with methods like this: ... reflection is not always necessary for these kind of tasks as the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Reflection....
    ... > Can somebody point me to an explanation of what Reflection is? ... each class has metadata that describes the ... So that is the physical representation of the metadata. ... about the *called* type is added to the assembly of the calling type ...
    (microsoft.public.dotnet.general)
  • Re: get name of variable as string?
    ... Reflection by calling the Type.GetFieldsmethod. ... because their names are not compiled into the assembly's metadata. ... Well, it's just for debugging, so I may want to go there. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Was ist...?
    ... Damit kann man zu Laufzeit die Metadata abfragen ... > ein ActiveX Objekt zu verwenden die Typenbibliothek ... > Ist Reflection das gleiche wie der beschriebene Vorgang? ... Next by Date: ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Meta-data on assemblies for CF...
    ... In the 1.1 version of the .NET Framework, custom attributes in the ... assembly and other metadata are not available via reflection. ... PEFile using the unmanaged MetaData API. ...
    (microsoft.public.dotnet.framework.compactframework)

Loading