PC Review


Reply
Thread Tools Rate Thread

Determine Path of Current Assembly

 
 
theinvisibleGhost
Guest
Posts: n/a
 
      13th Jul 2006
I'm trying to work out if theres a way to get the file path of my
assembly.
That is not the Application path.

My assembly is a plugin to another project.
I need to know the location of my Assembly so that I can reference
files that distributed with it.

Any ideas appreciated.
Cheers
Chris.

 
Reply With Quote
 
 
 
 
Barry Kelly
Guest
Posts: n/a
 
      13th Jul 2006
"theinvisibleGhost" <(E-Mail Removed)> wrote:

> I'm trying to work out if theres a way to get the file path of my
> assembly.
> That is not the Application path.
>
> My assembly is a plugin to another project.
> I need to know the location of my Assembly so that I can reference
> files that distributed with it.


Assembly.GetCallingAssembly().Location

-- Barry

--
http://barrkel.blogspot.com/
 
Reply With Quote
 
theinvisibleGhost
Guest
Posts: n/a
 
      13th Jul 2006

Barry Kelly wrote:
> "theinvisibleGhost" <(E-Mail Removed)> wrote:
>
> > I'm trying to work out if theres a way to get the file path of my
> > assembly.
> > That is not the Application path.
> >
> > My assembly is a plugin to another project.
> > I need to know the location of my Assembly so that I can reference
> > files that distributed with it.

>
> Assembly.GetCallingAssembly().Location
>
> -- Barry
>
> --
> http://barrkel.blogspot.com/


Fantastic. Cheers.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
determine if an assembly is debug or not. Jeremy Microsoft Dot NET Framework 2 9th Jun 2008 07:19 PM
"Assembly.Load()" - How to find an assembly using an alternate path JohnE Microsoft C# .NET 0 13th Apr 2008 02:50 PM
How to determine if assembly is a system assembly =?Utf-8?B?RWxhZA==?= Microsoft C# .NET 2 6th Oct 2005 12:24 PM
Determine the Current Memory Usage of an Assembly James Wansley Microsoft C# .NET 1 14th Oct 2004 04:51 PM
How to use Assembly.LoadFile to load assembly in different path? =?Utf-8?B?bGVlenE=?= Microsoft Dot NET Framework 0 19th Jun 2004 07:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:45 AM.