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 1064777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T19:43:11+00:00 2026-05-16T19:43:11+00:00

I am building a library in Visual Studio, and I have decided on my

  • 0

I am building a library in Visual Studio, and I have decided on my namespace structure as CompanyName.Type.Action e.g. MyCompany.Common.DataFile.

In Visual Studio I accomplish this by creating a new solution with name MyCompany.Common and then adding to the MyCompany.Common project the class DataFile.

First of all, this leads to the solution and the project having the same name, which I don’t think is best practice.

Second, I would end up with a lot of files in the MyCompany.Common project, instead of a lot of projects in the MyCompany.Common solution.

I could rename the solution to MyCompany and then have a project called Common, but I would still have a lot of files related to Common inside a single project.

Is this the best way of doing libraries?
How do you guys go about it?

  • 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-05-16T19:43:11+00:00Added an answer on May 16, 2026 at 7:43 pm

    It depends if you’re going to have any other projects within the solution. The solution name really doesn’t matter – most of the time, the solution is just a container for projects. You can have the same project in multiple solutions perfectly easily.

    Your project should definitely be MyCompany.Common rather than just Common, IMO. Don’t forget that the name of the generated assembly and default namespace are defaulted to be the same as the project name.

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

Sidebar

Related Questions

Building a solution from Visual Studio in mono develop seems to have some issues.
I'm building a C# class library, and using the beta 2 of Visual Web
I'm building a class library that will have some public & private methods. I
I'm building an Authentification library that's going to have around 45+ methods for dealing
In Visual Studio 2010, I have project A (asp.net application). Project A references project
I have issues to build a project using external libraries with Visual Studio 2010
I am having trouble using the XSLT 1.0 function library (since .NET/Visual Studio doesn't
I am totally new in building Visual Studio Project through a script, so feel
I'm building my Visual Studio solution and in the output window there's an error
I'm building a c++ DLL in visual studio 2008. For some reason, even when

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.