Assembly info from separate project?

  • Thread starter Thread starter Rob Meade
  • Start date Start date
R

Rob Meade

Hi all,

I have an asp.net project which originally had some code to get assembly
information from itself and display this in the footer of the page.

I have since made few server controls, and now moved this functionality into
the "Copyright" control...my problem is that the code returns the assembly
information from itself, ie, the "Copyright" footer .dll...not from the main
web application .dll...

I've looked at [Assembly].GetCallingAssembly and
[Assembly.GetExecutingAssembly but neither of these look like they have any
support for jumping ship to another .dll to interrogate..

Anyone got any ideas?

Regards

Rob
 
Check out System.Diagnostics.FileVersionInfo.GetVersionInfo, I think it
will do what you need.
 
...
Check out System.Diagnostics.FileVersionInfo.GetVersionInfo, I think it
will do what you need.

Hi BK, thanks for the info - one more question if I may, if the above was to
do what I wanted, wouldn't it be relying on me supplying the name of the
"parent" .dll? My template controls are unlikely to know this unless there
is a clever way to detect it - a bit like the "GetCallingAssembly" method of
Assembly for example..

Any thoughts?

Regards

Rob
 
Back
Top