Groups | Blog | Home
all groups > dotnet compact framework > february 2005 >

dotnet compact framework : Accessing attributes from AssemblyInfo on CF


Waldek
2/18/2005 11:50:34 PM
Is possible to access attributes from AssemblyInfo file like
"AssemblyTitle","AssemblyDescription"
etc.

Code below causes NotSupportedException :
Dim att As System.Reflection.AssemblyTitleAttribute

att =
System.Reflection.AssemblyTitleAttribute.GetCustomAttribute(System.Reflectio
n.Assembly.GetExecutingAssembly(),
GetType(System.Reflection.AssemblyTitleAttribute))

MsgBox(att.Title)




Daniel Moth
2/18/2005 11:53:19 PM
This is a known limitation of CF 1.0 addressed in CF 2.0

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


[quoted text, click to view]
Daniel Moth
2/19/2005 12:51:12 AM
On the desktop yes you can (like ILDASM can). On the actual target I am
aware of no way to doing it and have never seen a workaround:
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework/search?group=microsoft.public.dotnet.framework.compactframework&q=GetCustomAttributes&qt_g=1&searchnow=Search+this+group

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


[quoted text, click to view]
Waldek
2/19/2005 1:44:13 AM
Ok, thanks for info but ... ildasm display in MANIFEST thoes attributes. Is
no way to get values, even using some GetType/GetField sequence ?

[quoted text, click to view]


AddThis Social Bookmark Button