By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

How to get path to DLL within a class library

P: n/a
Don
Is it possible to determine where the DLL itself exists from within a class
library project at runtime, similar to the way Application.StartupPath works
for a windows application project?

- Don
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
* "Don" <un*****@oblivion.com> scripsit:
Is it possible to determine where the DLL itself exists from within a class
library project at runtime, similar to the way Application.StartupPath works
for a windows application project?


\\\
MsgBox(System.Reflection.Assembly.GetAssembly(Me.G etType()).Location)
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Is it possible to determine where the DLL itself exists from within a class
library project at runtime, similar to the way Application.StartupPath works
for a windows application project?

GetType(SomeClassOfYours).Assembly.Location

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.