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 (permalink)  
Old 10-10-2007, 03:57 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
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
Sponsored Links
  #2 (permalink)  
Old 10-11-2007, 05:37 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
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 (permalink)  
Old 10-15-2007, 11:38 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
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 (permalink)  
Old 10-29-2007, 12:51 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting specific elements from listbox Kirubhananth ASP and ASP.NET Programming 5 04-08-2008 10:35 PM
pagination for a folder? saravanan PHP Programming 0 03-21-2008 05:53 AM
How do I move the scrollbar to a specific position? Pvinothkumar HTML, CSS and Javascript Coding Techniques 3 10-27-2007 12:15 AM
deleting specific rows in a table using php Archimedees PHP Programming 6 09-14-2007 02:51 AM
goto specific scene nssukumar Flash Actionscript Programming 1 07-24-2007 01:14 AM


All times are GMT -7. The time now is 11:40 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0