Automatically update dll in local bin folder of my project

Hi,

I have a solution in visual studio consisting of an class library project and a website project.

The class library produces a .dll file on build, which I have referenced in the website project in the local bin folder.

Now each time i modify a class in the class library project, I build the project so the dll file gets updated. Then I have to go to the bin folder of the website project, right click the dll file and select 'Update reference' from the popup menu. This updates the dll file in the bin folder with the updated dll file from the class library project.

How can I skip this second step? So if I build the class library project, I would like the bin file of the website project to be automatically updated.

Cheers!
LVL 13
OnthraxAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
In that case you'll need to use a Post-Build Event to do a copy of the file. Something like:

Post Build Event
0
 
Carl TawnSystems and Integration DeveloperCommented:
Is your class library project actually referenced by the website project? If it is then you should only need to build the website project, which will trigger a rebuild of the class library and also copy the DLL to the websites bin folder.
0
 
OnthraxAuthor Commented:
Yes it is and you are correct when I build the website the dll gets updated fine, however building the website takes a long time, as to building just the dll project which takes a snap.

So instead of having this situation:
Build website --> Build dll --> copy to website
i would like this:
Build dll --> only copy the dll to the bin folder of the website
0
 
OnthraxAuthor Commented:
Ah that looks promising. Will be testing this in the next few days (busy days with easter unfortunately). I'll get back to ya. Cheers!
0
 
OnthraxAuthor Commented:
Thanks!
0
All Courses

From novice to tech pro — start learning today.