473,396 Members | 1,827 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,396 software developers and data experts.

How to view namespace of dependency?

I have two projects in one solution - a library and executable. Each
have a namespace such as:

ROOT.myapp.Functional
ROOT.myapp.UI

However, each cannot reference the other. myapp.UI is dependent on the
library but only sees ROOT.myapp.UI and vice versa. How do I get them
to see each other's namespace?

Thanks,
Brett

Dec 16 '05 #1
9 2389
In Visual Studio, from the ROOT.myapp.UI project, right click on the
project file and choose Add Reference... go to the Projects tab, and you
should see the ROOT.myapp.Functional project listed. Select it and press
OK. You should now be able to access ROOT.myapp.Functional from
ROOT.myapp.UI. (You do not want both projects referencing each other -
design your code so references only go one way. Which one references the
other is up to you - I just took a guess)

Joshua Flanagan
http://flimflan.com/blog

Brett Romero wrote:
I have two projects in one solution - a library and executable. Each
have a namespace such as:

ROOT.myapp.Functional
ROOT.myapp.UI

However, each cannot reference the other. myapp.UI is dependent on the
library but only sees ROOT.myapp.UI and vice versa. How do I get them
to see each other's namespace?

Thanks,
Brett

Dec 16 '05 #2
Sorry I didn't mention it but that has already been done. No luck.

Thanks,
Brett

Dec 16 '05 #3
Which one have you added the reference to?

Rebuild both projects seperately and try again.

Also, check that the namespacing in the actual files is correct, as
well as the default namespacing for the project.

Dec 16 '05 #4
The EXE is referencing the library project. They are in the same
solution. Their default namespaces are as I described them above and
spelled correctly. I can rebuild the library fine but not the EXE
because of references to the library, which it doesn't see.

Dec 16 '05 #5
Maybe if you provided some sample code it would be more apparent what
your problem is. I'm betting on a typo or something as minor.

In the EXE code, make sure you type the full namespace qualified name of
the type you are referencing:
ROOT.myapp.Functional.SomeType
and are not trying to shortcut by doing something like:
Functional.SomeType
Dec 17 '05 #6
I found the problem but it produces more problems. I needed to
reference the DLL as well. That gives me access to the namespace. So
my question is: What good does it do to reference a "project" DLL?
I've removed the project DLL reference and see no difference.

Here's the new problem:
When setting to copy local = false: It will tell me A.dll is not found
or there is a problem with one of its references. A.dll is there and
so are all of its references.

However, I have it write to the event log. I see there it keeps trying
to look in my app's bin folder rather than in the referenced DLL's bin
folder (still have copy local=false). I have my project paths set
correctly but that doesn't seem to matter.

These errors occur when copy local=true:

Error: The dependency 'config, Version=1.0.2172.32099, Culture=neutral'
in project 'TrackUI' cannot be copied to the run directory because it
would conflict with dependency 'config, Version=1.0.2173.28515,
Culture=neutral'.

Error: The dependency 'config, Version=1.0.2173.28515, Culture=neutral'
in project 'TrackUI' cannot be copied to the run directory because it
would conflict with dependency 'config, Version=1.0.2172.32099,
Culture=neutral'.

Warning: The dependency 'Utilities, Version=1.0.2176.30402,
Culture=neutral' in project 'TrackUI' cannot be copied to the run
directory because it would overwrite the reference 'Utilities,
Version=1.0.2175.31063, Culture=neutral'.

I use to have a DLL reference named 'config'. That is gone. I did a
"Find in Files" search on my project with case matching for 'config'.
Nothing. So why the error? It's a run time error that occurs
immediately.

As for the Utilities error, that is a DLL I'm referencing. I reference
several other DLLs, which in turn reference 'config'. Could that be an
issue? Why would that come through in my project?

Thanks,
Brett

Dec 17 '05 #7
I recommend reading Richard Grimes' Fusion Workshop. It will give you a
solid understanding of the rules .NET uses to load assemblies.
http://www.grimes.demon.co.uk/workshops/fusionWS.htm

You might want to turn off the auto-increment build number feature too.
Set a specific AssemblyVersion in your AssemblyInfo.cs file (instead of
1.0.*). Clear your bin directories and then build everything again.

Joshua Flanagan
http://flimflan.com/blog
Dec 17 '05 #8
Thank Joshua. I didn't see anything addresses my specific problem.

Where can I find the fuslogvw.exe program? I didn't find a link for
it at Microsoft.

Thanks,
Brett

Dec 18 '05 #9
fuslogvw.exe is included in the .NET Framework SDK.

If you have Visual Studio, the SDK should have been installed. On my
system, the folder is:

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin
or
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin

If you do not have the VS.NET or the SDK installed, you can download the
SDK from the Microsoft website.
Dec 19 '05 #10

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

Similar topics

2
by: Gary DeRousse | last post by:
Hello, Using SQL Server 2000, I'm trying to put together a query that will tell me the following information about a view: The View Name The names of the View's columns The names of the source...
2
by: Tjerk Wolterink | last post by:
IU have the following xsl root element: <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
4
by: cmay | last post by:
I have been having some problems lately where I get the error where it says that it cannot copy the new DLL b/c it will overwrite a reference to the old version. I know why this error happens,...
3
by: Seba | last post by:
For db2 UDB I need to get dependency information for views. What I'm looking for is the tables that have the source information for the view. i.e. : if the following view was defined in my...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
14
by: Jon Rea | last post by:
I am currently cleaning up an application which was origainlly hashed together with speed of coding in mind and therefore contains quite a few "hacky" shortcuts. As part of this "revamping"...
3
by: amitnicks | last post by:
Hi, I want to know that is there is a way to identify the Namespace dependency for a particular types method. Like how to know programittacly that SqlClient is in System.Data namespace? ...
10
by: Sean Chambers | last post by:
Hello, I am attempting to utilize the MVP pattern in a new app I am building. I am using TDD, along with mock views attached to the View interface to attempt to unit test the UI. The problem I...
2
by: Mosfet | last post by:
Hi, I am trying to solve an issue with a dependency between two classes as shown below : atlwince.h (declaration and definition is done in the .h) ----------
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.