Re: Meta-data on assemblies for CF...

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Jonathan Pierce (jpierce_at_nyc.rr.com)
Date: 07/19/04


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/



Relevant Pages

  • Re: PDF custom metadata - available for SharePoint searching?
    ... schema.txt is the schema for the properties indexed by sharepoint. ... You call contact PSS about adding custom properties ... > iFilter from ifiltershop in conjunction with the free Adobe PDF iFilter. ... > I have assigned metadata to a test PDF document. ...
    (microsoft.public.inetserver.indexserver)
  • Re: declarative prograaming (?) in C#
    ... Metadata is information that describes .NET types. ... metadata that the compiler *must* generate, and there is custom metadata ... Attribute suffix) is a *custom* attribute, it tells the compiler to add ... about serialization? ...
    (microsoft.public.dotnet.languages.csharp)
  • 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: Need help changing a DRM attribute in a protected file
    ... DRM attributes are not meant to be a generic way to add metadata to a WM ... If you are trying to add generic or custom attributes, ... HRESULT SetDrmAttribute(TCHAR * mediaFileName, TCHAR * attributeName, ...
    (microsoft.public.windowsmedia.sdk)