Solved

Automatically update dll in local bin folder of my project

Posted on 2014-04-17
5
173 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now