473,799 Members | 3,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Func tional
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 2410
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.Func tional project listed. Select it and press
OK. You should now be able to access ROOT.myapp.Func tional 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.Func tional
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.Func tional.SomeType
and are not trying to shortcut by doing something like:
Functional.Some Type
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.217 2.32099, Culture=neutral '
in project 'TrackUI' cannot be copied to the run directory because it
would conflict with dependency 'config, Version=1.0.217 3.28515,
Culture=neutral '.

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

Warning: The dependency 'Utilities, Version=1.0.217 6.30402,
Culture=neutral ' in project 'TrackUI' cannot be copied to the run
directory because it would overwrite the reference 'Utilities,
Version=1.0.217 5.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\B in

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
7297
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 tables used in the view The names of the columns that are used from the source tables Borrowing code from the VIEW_COLUMN_USAGE view, I've got the code
2
4932
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" xmlns:page="http://www.wolterinkwebdesign.com/xml/page" xmlns:xc="http://www.wolterinkwebdesign.com/xml/xcontent"> Well how do i select the xhtml namespace with xpath
4
1125
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, but often lately when I fix it, it doesn't "work". I have to manually delete dlls, restart VS.Net, close the solution, stuff like that to get it to work.
3
12436
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 database: create view my_view as
3
7225
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 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.dll' WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.Windows.Forms.dll' WARNING: Unable to...
14
6707
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" process I am introducing namespaces to properly compartmentalise sections of the code into logical units. What I am speciffically trying to get right is the dependency tree for header files to reduce compile time and simplify the code structure. On...
3
1342
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? Thanks in advance. Nicks
10
4521
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 am having is when using the InitView() of the presenter, normally I would be retrieving data from NHibernate when InitView is called. Therein lies the problem, I can't seem to figure out how to properly
2
1630
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
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10491
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10268
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10247
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9079
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.