Solved

Automatically update dll in local bin folder of my project

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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