Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8160463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:14:54+00:00 2026-06-06T18:14:54+00:00

My environment: Microsoft Visual Studio 2010 C# I’ve read many articles and comments about,

  • 0

My environment:

  • Microsoft Visual Studio 2010 C#

I’ve read many articles and comments about, how I should organize my namespaces.

http://msdn.microsoft.com/en-us/library/ms229026

So my question is quite simple. How do I get the company and project name automatically in my namespace?

If I create subfolders in my project, so I get the following pattern:

<Project>.<Folder>.<Subfolder>.<..>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:14:55+00:00Added an answer on June 6, 2026 at 6:14 pm
    • Solution1:

      If you go to the Properties window of your Project, you can set the Default namespace (including the Company Name) and also the Assembly name in the Application tab. Below is a screenshot of this:

    enter image description here

    Now, after setting the default namespace, every time you add a new class to this project, it gets the above set namespace by default.

    • Solution2:

    Another solution is, every time you add a new project to your VS Solution, in the Add New Project template dialog, give the new project Name equal to CompanyName.ProjectName. This way your new project’s Default namespace would include Company Name always (CompanyName.ProjectName) as shown in the Add New Project dialog screenshot below:
    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create the webpart in Visual studio 2010/2008 environment with microsoft given
Environment: Microsoft Visual Studio 2010 Coding standard: C++0x compatible I have a class template
environment: microsoft visual studio 2008 c# How do I get the index of a
My coding environment: the compiler is Microsoft Visual Studio C++ 2008. Okay, I have
My current preferred C++ environment is the free and largely excellent Microsoft Visual Studio
I have a following batch file echo Setting visual studio 2010 environment variables set
My environment consists of Visual Studio 2010 and Windows 7 a few months ago
I am working on Microsoft Visual Studio environment. I came across a strange behavior
I'm very beginner for developping. environment is .. Windows XP Professional SP3 Microsoft Visual
Following the article at http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx I tried to setup development environment for SharePoint 2010

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.