p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   C# (http://p2p.wrox.com/forumdisplay.php?f=22)
-   -   Class library folder path (http://p2p.wrox.com/showthread.php?t=65700)

arunkhushi February 4th, 2008 12:47 PM

Class library folder path

I am building a C# class library (dll) which is placed in c:\ drive.
Is there anyway i can get my physical folder path of my library.

I tried with - String executionDirectory = Assembly.GetExecutingAssembly()

but no luck..

appreciate your quick reposnse

samjudson February 4th, 2008 12:59 PM

There's a little thing called MSDN, which contains documentation on all the .Net framework classes. If you'd take the time to look up the piece of code you wrote above you'd realise that Assembly.GetExecutingAssembly() returns a System.Reflection.Assembly class.

Take a look at the following page and see if you can guess which property might be the one you want:


/- Sam Judson : Wrox Technical Editor -/

All times are GMT -4. The time now is 03:07 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.