I dont think thats possible. Why do you want the project location?
---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
For that you can use the Assembly.GetExecutingAssembly.CodeBase property.
---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
In my case the CodeBase property returns "file:///C:/Documents and
Settings/jfj/Local Settings/Application
Data/Microsoft/VisualStudio/8.0/ProjectAssemblies/xydic25m01/DbAccess.dll"
That is the .dll that the executing code is in. Each of the .dlls
referenced in the current project is in a different directory under
the ProjectAssemblies directory.
By adding the .dll I want to examine to the project, and by recursing
into all of the subdirectories of the parent directory returned by
CodeBase, I will be able to find the .dll. I would have preferred to
find the actual Bin directory, and not have to add a reference to the
..dll I want to examine, but I can use this. Actually the Location
property is slightly better, as it returns a file system name rather
than a URL.
Thank you.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.