Arestotel
Arestotel

Reputation: 9

Same folder structure as solution folder structure VS2019

I'm looking for a way to have my folder structure to be the same as the one in my solution.

Something similar to what I'm looking for can be seen here: https://github.com/jasontaylordev/CleanArchitecture

The question is how can I achieve the src/tests folders separation in both Solution and Windows Explorer without using any predefined template?

Upvotes: 0

Views: 1023

Answers (1)

davide-pi
davide-pi

Reputation: 308

Try to:

  • create src and test folders in the main folder where your solution is stored
  • open your solution with visual studio
  • right-click on solution -> add -> new solution folder
    • rename in src
    • rename in test
  • right-click on folder -> add -> existing project (or new project if it doesn't exist) and that's all. In this way, you will be able to see src and test folders separated in both solution and explorer.

Upvotes: 1

Related Questions