A
Arne Vajhøj
Steel said:On 1/11/2011 10:34 AM, mp wrote: [...]
I have used the Express editions several years ago. So you can't
right-click a project and add a folder? I find that kind of strange.
ah, yes, I can right click the project and get a drop down menu
the closest menu item is Add New Folder
That creates a new, empty folder under the project folder...
That created NewFolder1
So I copied ExcelReader.cs (my dal object) into that folder and renamed it
ExcelReader2.cs
I opened that file and renamed the namespace to ExcelReader2 (to avoid
conflict with the existing one in the bus.obj. project in the businesslayer
main folder)
Then I went back to the business layer project and added the using directive
at the top of the file( Investment.cs - the business object)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewFolder1.ExcelReader2;<<<<< added this here
namespace Investments.BusinessLayer
{
But i get the following compile error
Error 8 The type or namespace name 'NewFolder1' could not be found (are you
missing a using directive or an assembly reference?)
...well I thought that *WAS* the using directive...??? sorry i'm confused
again
I can see NewFolder1 in the list of refernces for that project...
You can't use a using statement that uses the namespace pointing to the
folder in the namespace? I don't care what anyone else is talking about.
You are referencing that folder in the namespace as far as I am concerned
so one doesn't have to use the fully qualified path to get to the folder
in code.
I don't want to get too hung up on the folder thing, i don't have so many
files in this project
that i need a heirarchy of folders to divide them up.
but i want to at least get to where I understand exactly what you're
doing...
sorry but the exact steps in the ide to do what you're suggesting may be
required, as so far
i don't seem to have enough understanding of the ide to physically follow
your suggestions yet.
And please never adopt the terminology about referencing folder or similar.
You import namespaces.
You reference assemblies.
Arne