S
S
Senseich2018-03-19 13:55:59
C++ / C#
Senseich, 2018-03-19 13:55:59

What is the difference between a solution and a project in Visual Studio, and how do I open multiple projects?

Learning C# in Visual Studio
Created a new Weather_bot project and wanted to open an existing Demo, but it suggests either closing Weather_bot or adding it to his solution. From here questions:
- What is the difference between a solution and a project?
- Is it possible to open projects separately just in different tabs (not in the same solution)
- And why are all the tabs called Program.cs? Shouldn't there be a project name?
Here is a screenshot: prntscr.com/it7mjc

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Ananiev, 2018-03-19
@SaNNy32

1. The solution contains several projects.
2. You can open projects separately if you copy them to a separate folder, but the studio will still create a solution for such projects.
3. Tabs are named after the file whose text they contain.

G
GavriKos, 2018-03-19
@GavriKos

1) A solution is a set of projects. So it is more convenient to solve dependencies and at the same time divide into modules. Extremely important for large projects.
2) You can. Two copies of VS. Within the framework of one copy, in my opinion, you can only keep 1 solution.
3) The tabs are named the same as the files are called (suddenly!) Why exactly Program - well, because the developer decided so.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question