Solved

Automatically update dll in local bin folder of my project

Posted on 2014-04-17
5
175 Views
Last Modified: 2014-09-28
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!
0
Comment
Question by:Onthrax
  • 3
  • 2
5 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 40006031
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
 
LVL 13

Author Comment

by:Onthrax
ID: 40008883
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
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 40008920
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
 
LVL 13

Author Comment

by:Onthrax
ID: 40010311
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
 
LVL 13

Author Closing Comment

by:Onthrax
ID: 40348435
Thanks!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question