Link to home
Start Free TrialLog in
Avatar of Silas2
Silas2

asked on

Using wrong DLL - simple problem

I'm using a plugin architecture where the Host app (actually WinForms) doesn't know about the components until runtime, then loads them (from http://shazwazza.com/post/Developing-a-plugin-framework-in-ASPNET-with-medium-trust.aspx  but Winforms) .
My simple problem is, when I click VS F5/Run it doesn't rebuild unless i Rebuild All (very slow) , even if i delete the dll folder, its seems to be using the previous one - does it get locked in memory of something? Is there a post build script i could run to purge and delete the plugin when build the host?
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Silas2
Silas2

ASKER

I'm doing that already and its working. The problem (might sound trivial) I'm having is only that when I press f5 on the main app, I have to first individually build the plugin I'm working on. - not a big deal I know but I'm going to be working with this a lot so I thought its worthwhile.
I'm thinking of putting  a call to msbuild in a bat file after building the main app for the plugin I'm working on...
do you have one solution for all projects? if not you should create one and add all projects.

then update build order by updating project dependencies of the app. add all plug-in Projects into the dependency list of the app. doing so, a rebuild-all should build all projects in a suitable order. because of the dependencies any change of a plug-in should cause the  app also to be "dirty" and make a build. also f5 should ask for build if any of the plug-Ins was changed.

Sara
Avatar of Silas2

ASKER

Thanks