473,394 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

'<name>' is declared in project '<projectname1>', which is not referenced by project '<projectname2>'

Hello,

I have a solution that contains two projects. I have 2 dlls that these
projects use. Here's how it's set up:

Solution
-ProjectA
--References
---DLLA
-ProjectB
--References
---ProjectA
---DLLA
---DLLB

Note: DLLB references DLLA.

When I open the solution, the following message is shown:
'MyFunction' is declared in project 'DLLA', which is not referenced by
project 'ProjectB'.

As you can see from above, ProjectB does reference DLLA. I have
confirmed that the DLLA referenced in both ProjectA and ProjectB is the
exact same file.

I have found two workarounds for this problem:
1) In *ProjectA*, remove and readd the reference to DLLA. The message
goes away and I can compile.
2) If I reference the projects for DLLA and DLLB instead of the DLLs,
the message is never shown.

Workaround 1 is not acceptable, as I have to do this everytime I open
the solution. Workaround 2 is not acceptable, as DLLA and DLLB are used
in other projects, and I don't want to have to retest everytime I make
a change to them. I only want to update DLLA and DLLB if it's required
for the particular solution, at which time I can schedule regression
testing.

Background:
- DLLA contains generic functions that I reuse in just about every
project.
- DLLB contains WebUI specific function that I only use in the
presentation layer. This dll references DLLA.
- ProjectA is the business logic layer for my solution.
- ProjectB is the presentation layer for my solution.

I now have this problem in two different applications and I would
really like a solution for this. Any help would be appreciated.

Thanks,
Tim

Feb 1 '06 #1
3 2869
Hello again,

I haven't gotten a response on this yet. I'd really appreciate some
help on this one.

Thanks,
Tim

Feb 21 '06 #2
I meet such promble also.
I want use a Application tie to split the other DLL, and it is
referenced by the main application.
as

Project A
reference B

....

project B
reference DLLC
......
some class D:DLLC.C

...
and there is a public function f in Class DDL.C.

and i add the DLLC into bin of Project A,
when i build it , it will show such error .
f is declared in project 'DDLC", which is not referenced by project "B"
Why we must referenct the DDLC in project A ?

Mar 9 '06 #3
Hello, Tim,

Sorry that you're not getting any good feedback on this.

Also sorry that I don't have an answer for you. But I wonder if you
tried reversing the order of the projects in the solution if this would
"hide" the problem.

I hope you get a proper answer soon. I can see that neither work-around
is convenient.

Cheers,
Randy
no********@gmail.com wrote:
Hello again,

I haven't gotten a response on this yet. I'd really appreciate some
help on this one.

Thanks,
Tim


Mar 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: droope | last post by:
When dotnet is opened it will display the last x number of projects that you have opened based on the number you have selected. Is there a way to remove a project from the project list without...
1
by: Jimi | last post by:
(Sorry for the repost, but I thought maybe I'd have better luck this time) I'm working on a utility to provide an overview of one's .NET projects and one of the things I want to display is...
4
by: Tamir Khason | last post by:
I have big and complicated solution as following: FooForm -> FooClass1 <- Foo1,Foo2,Foo3......... ^ | FooClass2 -> means that the project have right hand project as referenced assembly, without...
0
by: Simon Kennedy | last post by:
Hi all, Our team has recently moved from VS2003 to VS2005 and all our developers seem to be able to load the web project that is part of our server solution except for myself. When I attempt to...
2
by: unknown; | last post by:
hello, i've got a question about using a function from project B in project A. The projects are both in the same solution (using Microsolft Visual Studio 2005) the projects ara both native C++....
2
by: unknown; | last post by:
hello, i've got a question about using a function from project B in project A. The projects are both in the same solution (using Microsolft Visual Studio 2005) the projects ara both native C++....
3
by: DonJefe | last post by:
Does anyone have experience using project->project references in large solutions? What are the plus/minuses that you have found? Currently, we are using the binary assembly references for our...
3
by: Bob | last post by:
Hi, What do I have to do to be able to debug an external project referenced by another project? I have a project that references several other projects. For some of the external projects, I can...
4
by: Joe Kovac | last post by:
Hi! I have a solution with a web site (start project) and a project reference, which offers some functions to the web site. Intellisense works fine. Though I can't debug into the referenced...
1
by: John | last post by:
Hi I have two independent winform projects which have their start-up forms. If I include both projects in the same solution then can I run the second project from first project by pressing a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.