How do I run a dll in code with .net? I know that in VB6 All I had to do was start my dll project and reference it from another project. Right now all I see that I can do is recompile the dll everytime.
By default, when you set a reference, VS.NET copies the referenced DLL into your referencing project's <releasetarget>\bin directory (where <releasetarget> is usually "debug" or "release" That way it behaves like a private assembly and you have no versioning problems (like when you access it via the global assembly cache).
There is one big drawback, though, and that's if you make a change to the DLL. You will have to re-set the reference to the DLL, whereupon VS.NET will copy the new version to your project's <releasetarget>\bin directory, and you'll be able to make use of the new feature/bugfix.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.