Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

vb.net what folder in the object explorer does a .dll go into??

vb.net what folder in the object explorer does a .dll go into??

i think bin ...debug??
0
GlobaLevel
Asked:
GlobaLevel
  • 2
  • 2
1 Solution
 
Brad HoweCommented:
Hi,
I assume this is a 2.0/3.* framework.
The dll(s) that the runtime creates will now be in the Temporary ASP.NET Files directory underneath the framework installation
directory, unless you precompile the application/site with the publish option or the aspnet_compiler command line tool.

http://www.dotnetspider.com/tutorials/AspNet-Tutorial-AspNet-Tutorial-111.aspx 
Cheers,
Hades666
0
 
GlobaLevelAuthor Commented:
Will this change for vbdotnet?? I was told that the all hoes in the same folder as the app
0
 
ZhaolaiCommented:
You were told right. All the dlls go in the same folder as the app. But if you don't want it this way, you have two alternatives:

1. Place all the dlls in the GAC.
Or
2. Use the following method:

Add the attached module to your app. This assumes that all the dlls are located in sub folder "Component" under your application's .exe file. Please change accordingly.

Then add the following line to the beginning of your app, either in sub Main() or Form_Load:

       AddHandler AppDomain.CurrentDomain.AssemblyResolve, AddressOf MyResolveEventHandler



Module1.vb
0
 
GlobaLevelAuthor Commented:
Zhaolai,

What does the Module.vb do? what function does that serve?
0
 
ZhaolaiCommented:
Module1.vb contains a function to locate the assemblies your app references, if they are not in the same folder as the app. The event will fire when the reference is initialized and return appropriate assembly.

There is no need to modify the rest of your code in calling the references.



0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now