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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:08:52+00:00 2026-05-26T12:08:52+00:00

In Place for Test-projects in projects structure the discussion is about the folder structure

  • 0

In Place for Test-projects in projects structure the discussion is about the folder structure of projects and tests.

Now how about the structuring in the VS2010 solution:

In one project I have my structure like this

  • MainSolution
    • ClassLibrary1 (project)
    • ClassLibrary1.Tests (project)
    • ClassLibrary2 (project)
    • ClassLibrary2.Tests (project)
    • WindowsProgram (project)
    • WindowsProgram.Test (project)

Where WindowsProgram references ClassLibrary1 and ClassLibrary1 references ClassLibrary2

Now I have both program, class libraries and test in one solution.

Would it be better to have two solutions? Like the following:

Only the program and its DLL’s (for simplicity in VS2010)

  • MainSolution
    • ClassLibrary1 (project)
    • ClassLibrary2 (project)
    • WindowsProgram (project)

The solution with the tests.

  • TestSolution
    • ClassLibrary1 (same project as above)
    • ClassLibrary1.Tests (project)
    • ClassLibrary2 (same project as above)
    • ClassLibrary2.Tests (project)
    • WindowsProgram (same project as above)
    • WindowsProgram.Test (project)

I know that this means that whenever a change is made in the main solution, test solution should be build too and all the test should be ran to see if something was broken.

Should I stay with the former solution structure or transfer to the latter?

  • 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-26T12:08:53+00:00Added an answer on May 26, 2026 at 12:08 pm

    I’m working on a codebase with a structure like your second on at the moment. Sigh.

    DON’T DO IT!

    People end up loading the first solution, making changes and then closing the solution. The tests are never run and everything is broken. A build server could manage this for you but it’s still not as good as having the developers run the tests after every change.

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

Sidebar

Related Questions

I have a project structure that looks like the following: [Solution Name] doc (documentation)
In .NET should you place unit test projects in with the rest of the
Some Background I have been using Git for a while now. The projects that
I have an Eclipse project with the following directory structure: MyProj >> src/main/java >>
I have a Unit Test project with 20+ .cs files. I want to run
My common scenario: I have a web app and a test project in the
I would like to create project in scala, with proper directory structure, test directory
I have a project that uses the normal Maven structure, e.g. module \ src
I have a couple of ANT projects for several different clients; the directory structure
I have been having some problems with the test debugger in VS10. All tests

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.