How does Visual Studio open a project

1 Problem statement

如果只是想知道怎么打开项目的话可以跳过 【1 问题说明】,
这段无非是在为【为什么我们需要打开项目?】举例

I believe that everyone has been confused by various error reports in Visual Studio. Many of the solutions to the error reports will tell you that you need to modify the project [Properties].

However, they tell you how to modify the configuration in [Properties], but they don't tell you how to open this [Properties] page.

Of course, there are a lot of articles that tell you with screenshots like this:

  • Facing 【Project】left click
  • Click the [Properties] column at the bottom.insert image description here

However, if you are a pure novice in using Visual Studio, you may be confused:

  • 欸,为什么我点击【属性】后是显示一个啥都没有的框呢?
    insert image description here

2 Problem Analysis

The fundamental problem with this error is that the so-called [Project] you left-click is actually a [File]

Please pay attention to see if the chart you clicked is a folder? If it is, don't expect to point out anything of value from it.
insert image description here

3 problem solving

The key to solving the problem lies in how to open the project with [Project]

3.1 Primary solution (open project with project)

You said, it's very simple!

  1. 【File】-【Open】-【Project】
    insert image description here
  2. 【Select *.sln file】-【Open】
    insert image description here
  3. Did you see that ++, it's called a [Project]
    insert image description here

3.2 Advanced solution (use [folder] to open the project)

Of course, the method in the primary solution is a way to open the project, but think about it, if you want to run two projects at the same time, they are in the same folder, how do you open them both?

At this time, to return to the basics, you still have to open them with [folder], please see the operation below

  1. 【File】-【Open】-【Folder】insert image description here

  2. 【Select your folder】: For example, if you want to open these 4 small folders, you can select their upper folders.insert image description here

  3. It looks like this after openinginsert image description here

  4. [Click the *.sln file of the project to be run/viewed] ==> equivalent to [Open the project]
    insert image description here
    insert image description here

  5. Being able to open a project is great, but how do we view other projects?
    [Click the button in the purple box in the screenshot below] You can see
    that the resource manager has changed. There are two options:
    => [Click folder view] - [Back to the start view]
    => [Click any *.sln] - [Switch to the corresponding project view]
    insert image description here
    insert image description here

  6. problem solved

Guess you like

Origin blog.csdn.net/twi_twi/article/details/127150119