IT Community - Software Programming, Web Development and Technical Support

Can we put the reference dll in to a specific folder?

This is a discussion on Can we put the reference dll in to a specific folder? within the C# Programming forums, part of the Software Development category; Hi there, I'm developing an application which is referenced a dll using VS 2005. When I compile that, it ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 10-10-2007, 02:57 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 319
amansundar is on a distinguished road
Question Can we put the reference dll in to a specific folder?

Hi there,

I'm developing an application which is referenced a dll using VS 2005. When I compile that, it will put the referenced dlls to the same folder with .exe file, but I want to put those dlls in a child folder like "dlls/" .

How to do that?
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 10-11-2007, 04:37 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Smile Re: Can we put the reference dll in to a specific folder?

If the dlls aren't in the same folder as the exe your exe won't usually find and load them (if they're .NET assemblies).
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 10-15-2007, 10:38 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 319
amansundar is on a distinguished road
Default Re: Can we put the reference dll in to a specific folder?

yes, but who knows how to have the .exe to find dlls in child folder?
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 10-28-2007, 11:51 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Default Re: Can we put the reference dll in to a specific folder?

You can add some subfolder to your AppDomain by using AppDomainSetup.PrivateBinPath.

Additional you can use the obsolete method AppDomain.CurrentDomain.AppendPrivatePath but using the first one should be your favorite.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder Redirection arjkhanna Operating Systems 4 07-01-2009 03:53 AM
Renaming a folder. Akhil Java Programming 0 02-12-2009 10:15 PM
pagination for a folder? saravanan PHP Programming 0 03-21-2008 04:53 AM
CON Folder in Windows Sabari Server Management 1 12-01-2007 02:40 AM
Using C# and VB.NET classes together in the App_Code folder Gopisoft VB.NET Programming 0 07-17-2007 09:39 PM


All times are GMT -7. The time now is 06:58 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0