You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/get-started/tutorial-open-project-from-repo.md
+16-17Lines changed: 16 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,8 @@
2
2
title: "Tutorial: Open project from repo in Visual Studio"
3
3
description: Learn how to open a cloned project in a Git or Azure DevOps repository by using Visual Studio and view files in Solution Explorer.
4
4
ms.custom: vs-acquisition
5
-
ms.date: 12/04/2023
5
+
ms.date: 9/19/2024
6
6
ms.subservice: general-ide
7
-
8
7
ms.topic: tutorial
9
8
author: anandmeg
10
9
ms.author: meghaanand
@@ -14,9 +13,9 @@ dev_langs:
14
13
---
15
14
# Tutorial: Open a project from a repo
16
15
17
-
In this tutorial, you'll use Visual Studio to connect to a repository for the first time, clone it, and then open a project from it.
16
+
In this tutorial, you use Visual Studio to connect to a repository for the first time, clone it, and then open a project from it.
18
17
19
-
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) page to install it for free.
18
+
If you don't have Visual Studio yet, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) page to install it for free.
20
19
21
20
::: moniker range="vs-2022"
22
21
@@ -47,13 +46,13 @@ Here's how.
47
46
48
47
1. Next, Visual Studio loads the solution(s) from the repository by using the **Folder View** in [**Solution Explorer**](../ide/use-solution-explorer.md?view=vs-2022&preserve-view=true).
49
48
50
-
:::image type="content" source="../ide/media/vs-2022/git-solution-explorer-folder-view.png" alt-text="Screenshot of the Folder View in Solution Explorer in Visual Studio 2022.":::
49
+
:::image type="content" source="./media/vs-2022/tutorial-open-project-from-repo/git-solution-explorer-folder-view.png" alt-text="Screenshot of the Folder View in Solution Explorer in Visual Studio 2022.":::
51
50
52
51
You can view a solution in **Solution View** by double-clicking its .sln file.
52
+
53
+
You can select the **Switch Views** button to switch between folder view and solution view.
53
54
54
-
Or, you can select the **Switch Views** button, and then select **Program.cs** to view a solution's code.
55
-
56
-
:::image type="content" source="./media/vs-2022/tutorial-open-project-from-repo/git-solution-explorer-switch-views.png" alt-text="Screenshot of a project in Git that's open in Solution Explorer, with the Switch Views button highlighted.":::
55
+
:::image type="content" source="./media/vs-2022/tutorial-open-project-from-repo/git-solution-explorer-switch-views.png" alt-text="Screenshot of a C# project in Git that's open in Solution Explorer":::
57
56
58
57
> [!TIP]
59
58
> You can change from the default Folder View to Solution View from the **Git** menu. Select **Settings** > **Source Control** > **Git Global Settings** > **Automatically load the solution when opening a Git repository** to do so.
@@ -69,7 +68,7 @@ Here's how.
69
68
:::image type="content" source="../ide/media/vs-2022/open-local-project-from-cloned-repo.png" alt-text="Screenshot of the 'Open a project or solution' window in Visual Studio 2022.":::
70
69
71
70
> [!TIP]
72
-
> If you've opened the project or solution recently, select it from the **Open recent** section to quickly open it again.
71
+
> If you opened the project or solution recently, select it from the **Open recent** section to quickly open it again.
73
72
74
73
Start coding!
75
74
@@ -117,9 +116,9 @@ Here's how to browse to and clone an Azure DevOps repo by using Visual Studio.
117
116
118
117
## Open a project from a GitHub repo with Visual Studio 2019
119
118
120
-
How you open a project from a GitHub repo by using Visual Studio depends on which version you have. Specifically, if you've installed version Visual Studio 2019 [**version 16.8**](/visualstudio/releases/2019/release-notes-history) or later, there's a new, more fully integrated [Git experience in Visual Studio](../version-control/git-with-visual-studio.md) available to you.
119
+
How you open a project from a GitHub repo by using Visual Studio depends on which version you have. Specifically, if you installed version Visual Studio 2019 [**version 16.8**](/visualstudio/releases/2019/release-notes-history) or later, there's a new, more fully integrated [Git experience in Visual Studio](../version-control/git-with-visual-studio.md) available to you.
121
120
122
-
But no matter which version you've installed, you can always open a project from a GitHub repo with Visual Studio.
121
+
But no matter which version you installed, you can always open a project from a GitHub repo with Visual Studio.
123
122
124
123
### Visual Studio 2019 version 16.8 and later
125
124
@@ -175,10 +174,10 @@ Here's how to use Git in Visual Studio 2019 [**version 16.8**](/visualstudio/rel
175
174
176
175

177
176
178
-
If you've opened the project or solution recently, select it from the **Open recent** section to quickly open it again.
177
+
If you opened the project or solution recently, select it from the **Open recent** section to quickly open it again.
179
178
180
179
> [!TIP]
181
-
> You can also use the **Git** menu in the Visual Studio IDE to open local folders and files from a repo that you've previously cloned.
180
+
> You can also use the **Git** menu in the Visual Studio IDE to open local folders and files from a repo that you previously cloned.
182
181
>
183
182
> 
184
183
@@ -206,15 +205,15 @@ Here's how to use Git in Visual Studio 2019 [**version 16.7**](/visualstudio/rel
206
205
207
206

208
207
209
-
If you do not have a solution file (specifically, an .sln file) in your repo, the fly-out menu says "No Solutions Found." However, you can double-click any file from the folder menu to open it in the Visual Studio code editor.
208
+
If you do not have a solution file (specifically, an .sln file) in your repo, the fly-out menu says "No Solutions Found." However, you can double-click any file from the folder menu to open it in the Visual Studio editor.
210
209
211
210
Start coding!
212
211
213
212
## Browse to an Azure DevOps repo with Visual Studio 2019
214
213
215
-
What you see when you browse to and clone an Azure DevOps repository by using Visual Studio 2019 depends on which version you have. Specifically, if you've installed version [**version 16.8**](/visualstudio/releases/2019/release-notes-history) or later, we've changed the UI to accommodate a new, more fully integrated [Git experience in Visual Studio](../version-control/git-with-visual-studio.md) in Visual Studio.
214
+
What you see when you browse to and clone an Azure DevOps repository by using Visual Studio 2019 depends on which version you have. With version [**version 16.8**](/visualstudio/releases/2019/release-notes-history) or later, the UI accommodates a new, more fully integrated [Git experience in Visual Studio](../version-control/git-with-visual-studio.md) in Visual Studio.
216
215
217
-
But no matter which version you have installed, you can always browse to and clone an Azure DevOps repo with Visual Studio.
216
+
But no matter which version you installed, you can always browse to and clone an Azure DevOps repo with Visual Studio.
218
217
219
218
### Visual Studio 2019 version 16.8 and later
220
219
@@ -278,7 +277,7 @@ But no matter which version you have installed, you can always browse to and clo
278
277
279
278

280
279
281
-
If you do not have a solution file in your repo, a 'No Solutions Found' message appears. However, you can double-click any file from the folder menu to open it in the Visual Studio code editor.
280
+
If you do not have a solution file in your repo, a 'No Solutions Found' message appears. However, you can double-click any file from the folder menu to open it in the Visual Studio editor.
0 commit comments