Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding references between multiple projects in a solution

Status
Not open for further replies.

brage98

IS-IT--Management
Sep 8, 2010
27
CA
I have 3 projects in my solution:
Project A
Project B
Project C

Project C references Project B
Project B references Project A
Project A has a "NewExternal.dll" reference.

Naturally when I build Project C, I expect, B, A and "NewExternal.dll" be added to project C. Unfortunately, "NewExternal.dll" fails to get added to Project B and therefore it doesn't get added to project C.

So, A -> B fails to copy over "NewExternal.dll"

Project C is a web-project.
Project A and B are C# class libraries

I've added the reference in B through:
Right Click Project B
Add Reference
Select Projects Tab
double click on Project A

In project C (which is a web-project)
Right click on the project
Select "Property Pages"
Add
Select "Projects" tab
Select project B and C

Question:
How do I make it so "NewExternal.dll" from project A gets added to B and C when I build my solution (i've done this before... I just have been unfortunate enough to be away from .net for oh about a year... man I miss it!)

thanks in advance for your help :)
 
Are you having a problem with the .dll not being moved the web project after it compiles, or with it not "seeing" the reference?

when you right click on the reference, you are normally given the ability to specify COPY LOCAL = True. This is normally a SharePoint issue with it be set to false, but check that.

HTH,
Lodlaiden

If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]
 
Hey Thanks for the reply...
My problem is this:

I build Project A (That has A.dll and external.Dll)

My project B has a reference to project A

only A.dll is added to project B. "external.dll" doesn't get copied over to project B.
 
have project A reference external.dll as well.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
hmmm, yeah that's what I'm doing right now... but I think there's gotta be a better way. I wanna have a central/common project with all the .dlls and whatever project that references this common project should automatically be updated with all the external dlls used by the common project, if you know what I mean
 
yes, but it doesn't work that way. you can use the pre/post build events to customize the build process. or you use use a build automation tool like Final Builder, psake, albacor, rake or nant to assist with the build process.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Too bad,
well thanks for your reply then. I guess I have to use a build tool then.
I will update this post if I do find a way to force the dlls through
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top