creating namespace in vs2008 in

Posted on 2012-09-11
Last Modified: 2012-09-12

I created the following projects in VS2008
ProjectName      Assembly Name      Root namespace
MyApp.GUI      MyApp      MyApp.GUI
MyApp.Model      MyApp      MyApp.Model
MyApp.View      MyApp      MyApp.View
MyApp.Prop      MyApp      MyApp.Prop

I am trying to access other classes from one of the class and it won't let me access them.

Say I have the following classes:
MyApp.View.Page1 class
MyApp.Model.ModelOne class

from page1 class, I would like to access the ModelOne class.
When I try to import the namespace, I don't see teh MyApp.Model.

This is really easy in C# but can't seem to get this right.
Can you help?

I just want to manage my projects by this way, MyApp.xxxx project...etc

I even tried leaving the Root namespace as blank and , explicityly putting the namespace in the file.
I am not getting the success.
Question by:dkim18
    LVL 24

    Expert Comment

    if all these are separate projects, you have to add references to them and then use Import directive

    Author Comment

    Hm. Thank you. I didn't realize that I had to add refereces to other projects.

    I don't remember adding references in c# projects I worked before.
    I must have forgotten.
    LVL 24

    Accepted Solution

    if you have separate assembly then it has to be referenced somehow, hasn't it ;)

    sometimes VS is clever and adds dependencies for you while you're within the solution, but if you don't see your classes in Object Browser it defo means it's not referenced

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now