« Event subscription using weak references | Main | Logos Code Blog License »

September 19, 2008

Getting the file path of an assembly

I can never remember how to get the file path of a .NET Framework assembly, so I thought I'd post it here once and for all.

string strProgramPath = typeof(Program).Assembly.Location;

That is all.

Posted by Ed Ball at September 19, 2008 2:15 PM

Trackback Pings

TrackBack URL for this entry:
http://ancientblogs.logos.com/mt-cgi/mt-tb.cgi/244