Should I have multiple projects in a single solution in visual studio using c# and .NET

Darryl Hoar 181 Reputation points
2024-11-06T20:29:01.84+00:00

I need to develop (3) projects. one desktop and two custom windows services.

Should I create a solution with 3 projects in visual studio? Or should I create 3 individual solutions?

I use git for source code control with local repository (No GitHub).

thanks for any guidance.

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2024-11-07T02:20:52.9633333+00:00

    Hi @Darryl Hoar ,

    Please see the description here: Solutions

    … It’s simply a container for one or more related projects, along with…

    So, if they are related, put them in the same solution. If they are not very related, create 3 individual solutions.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.