I have a multi-project solution. From my live website project I used to reference each projects dll directly by copying and pasting them into the live website projects bin directory - before I realised I could add a reference to a project (right-click add
reference > project tab). I have now added references the correct (latter) way.
However when I deploy my live website project to the live server, it still wants to find the dll's directly in the bin folder.
Why is this? When I make a change now to one of the projexts, my live server project (when deployed) still uses the old dll in the bin folder.
Its mandatory that you should have a proper reference path in main project when adding the reference,
It would be better add reference from main web project's bin folder and when ever you modify the project build that and put their dll in Web project's Bin folder.
This is how I resolved it - I still used project reference localy but when deploying amde sure I added the dll of each referenced project into the deployed webwsite bin folder
Marked as answer by london24 on Feb 25, 2013 07:35 AM
london24
Member
97 Points
108 Posts
Project references not being updated when deploying
Feb 24, 2013 10:43 PM|LINK
Hi
I have a multi-project solution. From my live website project I used to reference each projects dll directly by copying and pasting them into the live website projects bin directory - before I realised I could add a reference to a project (right-click add reference > project tab). I have now added references the correct (latter) way.
However when I deploy my live website project to the live server, it still wants to find the dll's directly in the bin folder.
Why is this? When I make a change now to one of the projexts, my live server project (when deployed) still uses the old dll in the bin folder.
It works locally.
Thanks
Rajneesh Ver...
All-Star
38344 Points
6989 Posts
Re: Project references not being updated when deploying
Feb 25, 2013 04:24 AM|LINK
Its mandatory that you should have a proper reference path in main project when adding the reference,
It would be better add reference from main web project's bin folder and when ever you modify the project build that and put their dll in Web project's Bin folder.
It will surely work.
www.rajneeshverma.com
Keep Forums Clean || Use Alert Moderators.
london24
Member
97 Points
108 Posts
Re: Project references not being updated when deploying
Feb 25, 2013 07:35 AM|LINK
This is how I resolved it - I still used project reference localy but when deploying amde sure I added the dll of each referenced project into the deployed webwsite bin folder