Re: Meta-data on assemblies for CF...
From: Jonathan Pierce (jpierce_at_nyc.rr.com)
Date: 07/19/04
- Next message: Alex Feinman [MVP]: "Re: Image error"
- Previous message: Alex Feinman [MVP]: "Re: getting values from combobox"
- In reply to: Antao Almada: "Re: Meta-data on assemblies for CF..."
- Messages sorted by: [ date ] [ thread ]
Date: 19 Jul 2004 09:47:30 -0700
Antao Almada <anonymous@devdex.com> wrote in message news:<ut$zu2SaEHA.996@TK2MSFTNGP12.phx.gbl>...
> I've been looking all over the web and the newsgroups, and still can't
> find an answer for the problem.
>
> Could it be that the "regular" method looks for the metadata in a
> different place than the CF method? But it works fine on the Refletor,
> with an identical scenario... ;-(
>
> The reason I'm doing this is because I want to dinamically generate
> another assembly, based on the classes and custom attributes of the
> original assembly. Because CF does not support CodeDom, I'm doing this
> on a "regular" framework application.
>
> Do you have any suggestions?
>
Antao,
In the 1.1 version of the .NET Framework, custom attributes in the
assembly and other metadata are not available via reflection. You will
either need to wait for 2.0, or directly read the metadata from the
PEFile using the unmanaged MetaData API. Read \Microsoft Visual Studio
.NET 2003\SDK\v1.1\Tool Developers Guide\docs\Metadata Unmanaged
API.doc for details.
You may also find our Decompiler.NET product useful which will produce
and output C# source code from the compiled assembly including the
custom attribute values that you are looking for. Our implementation
reads this info and other metadata not available through reflection
directly from the PE file to support COM Interop, etc. You can
download a free trial version from our web site at
http://www.junglecreatures.com/
Jonathan Pierce
President
Jungle Creatures, Inc.
http://www.junglecreatures.com/
- Next message: Alex Feinman [MVP]: "Re: Image error"
- Previous message: Alex Feinman [MVP]: "Re: getting values from combobox"
- In reply to: Antao Almada: "Re: Meta-data on assemblies for CF..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|