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
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.
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.
Don't see what you're looking for? Try a search.
|