Groups | Blog | Home
all groups > visual studio .net general > september 2003 >

visual studio .net general : Assembly build issues with multiple projects in one solution


mbwalmsley NO[at]SPAM hotmail.com
9/29/2003 11:43:49 PM
Hi, was hoping someone could give me a helping hand please.

I have one VS solution called 'MySolution', a project called
'MyWebProject' and another project called 'MyClass'. The (two)
projects have both been added to the (one) solution. These aren't the
real names, but they might make it easier.


Project MyWebProject references MyClass. When I build either project,
only that project's dll is built (fair enough). When I build the
entire solution (for the first time), both dlls are built. Perfect.


The problem is this (when doing a solution build);
If there is NO copy of MyClass.dll in the MyWebProject/bin folder,
both projects are built, and a copy of MyClass.dll is put in the
MyWebProject/bin folder. Everything works fine.

But, if there is already a copy of the MyClass.dll in the /bin folder,
and I rebuild the entire solution, this older copy is NOT
over-written. I need it to be, obviously.

I have played with the Copy Local (true/false) properties of the
Reference. This setting does not solve this issue.

Many thanks

mbwalmsley NO[at]SPAM hotmail.com
9/30/2003 5:07:51 AM
further to this;

if i delete the MyClass.dll from the MyWebProject/bin folder, then
rebuild the solution, BOTH assemblies are built and put in this
folder.

The whole rebuild only fails if there is an existing MyClass.dll.

mbwalmsley NO[at]SPAM hotmail.com
9/30/2003 3:21:20 PM
if found the solution, thanks all

1) Remove your existing reference to the class libary
2) Select the web project node in the solution explorer and use the
Project\Add Reference command.
3) When the reference dialog appears, click on the projects tab. You
should see the class library project.
AddThis Social Bookmark Button