DLL Files in subfolder

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
6 posts Page 1 of 1
Contributors
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

DLL Files in subfolder
AnoPem
Hey i would like a tutorial that shows how i can include the dll files the application needs in an sub folder of the exe file lets say

\application.exe
\lib\lib1.dll
\lib\lib2.dll

and so on, how can i achive this ?
https://t.me/pump_upp
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Re: DLL Files in subfolder
CodenStuff
Not sure but doing a quick search I found this that may/may not work :?

msdn doc

Adding this to the app.config file:
Code: Select all
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="FolderName"/>
    </assemblyBinding>
  </runtime>
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: DLL Files in subfolder
XTechVB
CodenStuff wrote:
Not sure but doing a quick search I found this that may/may not work :?

msdn doc

Adding this to the app.config file:
Code: Select all
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="FolderName"/>
    </assemblyBinding>
  </runtime>
It does work, I'm using that subroutine in my Install Builder.Net.
You can find me on Facebook or on Skype mihai_92b
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

Re: DLL Files in subfolder
AnoPem
XTechVB wrote:
CodenStuff wrote:
Not sure but doing a quick search I found this that may/may not work :?

msdn doc

Adding this to the app.config file:
Code: Select all
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="FolderName"/>
    </assemblyBinding>
  </runtime>
It does work, I'm using that subroutine in my Install Builder.Net.
I tried to use it, i added it to app.config but it did not work can you show me how it works ?
https://t.me/pump_upp
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Re: DLL Files in subfolder
CodenStuff
Never used it myself so I have no clue lol.

Here's a lengthy discussion on msdn you can read, hopefully it will help: DLL's from subfolder
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

Re: DLL Files in subfolder
AnoPem
CodenStuff wrote:
Never used it myself so I have no clue lol.

Here's a lengthy discussion on msdn you can read, hopefully it will help: DLL's from subfolder
Thanks ill check it out
https://t.me/pump_upp
6 posts Page 1 of 1
Return to “Tutorial Requests”