Solved

Automatically update dll in local bin folder of my project

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

759 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

18 Experts available now in Live!

Get 1:1 Help Now