Sharing a namespace across different assemblies - what are the issues?

Posted on 2012-09-07
Last Modified: 2012-09-10
Due to dependency issues I am having to move some of my code between assemblies.

However I would like to keep the original namespace - are there any issues with sharing a namespace across assemblies that I should be aware of?

I'm using VS 2010 and .NET 4.
Question by:purplesoup
    LVL 43

    Assisted Solution

    As far as I know - none (assuming there isn't another assembly that happens to have the same namespace that is).
    LVL 13

    Accepted Solution

    It's definitely possible and there is nothing wrong with it. The .NET
    framework itself has namespaces spread across multiple assemblies. For
    example, the System.Data namespace and the System.Web, System.Web,
    System.Drawing, etc., etc., etc. namespaces are implemented in multiple

    It's perfectly fine in my opinion as long as it is clear to the users of
    your class library that what assembly they will need to reference for given
    LVL 74

    Assisted Solution

    by:käµfm³d 👽
    The only "problem" I can think of is if you just happen to have a class in each assembly (and namespace) with the same name. In that case, you would not be able to rely on a "using someNamespace;" at the top of your code file; you would have to fully-qualify each declaration (if the two classes are being used in the same code file).

    Author Comment

    ok great -thanks for all your comments.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 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

    19 Experts available now in Live!

    Get 1:1 Help Now