Results 1 to 5 of 5

Thread: [2.0] Visual Studio 2005 namespaces

  1. #1

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    [2.0] Visual Studio 2005 namespaces

    We have a project divided into several folders. whenever we add a new file to one of the subfolders, VS 2005 appends the classes' namespace with .[foldername]

    It's pretty annoying. Any way to turn the auto-naming off?
    Merry Christmas

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2.0] Visual Studio 2005 namespaces

    You want to turn it off just because it's annoying you?
    If you want all your code with the same namespace put all your files in the same folder
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    Re: [2.0] Visual Studio 2005 namespaces

    Uhm. Yes. It's annoying me, and I'd like to turn it off.

    Right now we are creating them in the current directory and then shoveling them into sub-folders so that our solution stays manageable.
    I suppose we could avoid some of this by putting more than one class in a file, but for now, that's how we are doing this.

    Strangely, you are not the first person to react like that. I'm still kinda confused by people's reactions.
    Why does everyone balk at questions like this? What is so unreasonable about expecting modern IDE's to be customizable?
    Isn't that what they are for? to make our lives better and so that we can be more productive?
    Merry Christmas

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2.0] Visual Studio 2005 namespaces

    C# extends Java and I believe you don't know much about Java
    The concept of namespaces is taken from Java Packages,
    In java if the class package (namespace) declaration isn't set correctly to the folder it belongs to just won't compile
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    Re: [2.0] Visual Studio 2005 namespaces

    Ah.

    Well, I don't like it, but perhaps now I understand where this nuance came from.

    My background is primarily VB6.0 and I'm learning to accept some of the ins and outs of C# and it's evolution from C-based languages. I didn't mean to sound like a raving jerkoff, but when one doesn't have experience in the predecessors of a language like this, one can become frustated. (Don't get me started on case-sensitivity )

    Thanks for the reply.
    Merry Christmas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width