Any quick descriptions on how to go about this? Thanks!
Main Topics
Browse All TopicsI have question which I do not have the time to research myself, thus this post.
We have a plug-in inside of Autodesk Inventor which creates a tool bar with buttons for the user to click, which is represented as a DLL. We added a new button and the code for its functionality is actually buried in a new dll. We will be making changes frequently over the next few months and do not wish to need to recompile the tool bar code everytime we have a new version of our materials list dll.
I was under the impression that with .Net we could simply overwrite the old DLL with the new one, and as long as we don't change function names, input parameters and return types everything would work just fine.
Well no matter how many times we overwrite the file it still loads the old DLL. I had to increment the assembly and file version and he had to remove and re-add the dll as a reference in the project and recompile it to get the new DLL to be called. I plan on implementing the Auto Updater application block in this, but it won't do much good if everything needs to be recompiled. Are there any solutions to this? If I've completely botched the explanation just let me know. We're deploying this weekend so I need help!
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
http://aspalliance.com/
http://msdn.microsoft.com/
http://www.codeproject.com
please not that reflection is used to load assemblies, not pure native DLLs
Here are quick descriptions:
1) From your plug-in dll code, you extract a Interface or create a base class which will be used in your primary application
2) Add assembly name and the class name which implements the interface or inheirts the base class in the configration file of your primary application
3) Modify your primary application code to load the assembly and instance an object of the class, cast the object to the interface or the base class type, then you call the methods.
Assembly DynamicAssembly = Assembly.Load("yourassembl
baseclassorinterfacetype toolbar = (baseclassorinterfacetype)
Business Accounts
Answer for Membership
by: joechinaPosted on 2006-12-29 at 19:42:01ID: 18217786
use reflection to load the dll assembly on fly with the version information in configuration file.
so you just need to redeploy the dll and update the configuration file.