Skip to content

Commit 31ada6c

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents 45f941e + dfe33ad commit 31ada6c

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

docs/get-started/tutorial-open-project-from-repo.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
title: "Tutorial: Open project from repo in Visual Studio"
33
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.
44
ms.custom: vs-acquisition
5-
ms.date: 12/04/2023
5+
ms.date: 9/19/2024
66
ms.subservice: general-ide
7-
87
ms.topic: tutorial
98
author: anandmeg
109
ms.author: meghaanand
@@ -14,9 +13,9 @@ dev_langs:
1413
---
1514
# Tutorial: Open a project from a repo
1615

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.
1817

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.
2019

2120
::: moniker range="vs-2022"
2221

@@ -47,13 +46,13 @@ Here's how.
4746

4847
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).
4948

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.":::
5150

5251
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.
5354

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":::
5756

5857
> [!TIP]
5958
> 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.
6968
:::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.":::
7069

7170
> [!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.
7372
7473
Start coding!
7574

@@ -117,9 +116,9 @@ Here's how to browse to and clone an Azure DevOps repo by using Visual Studio.
117116

118117
## Open a project from a GitHub repo with Visual Studio 2019
119118

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.
121120

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.
123122

124123
### Visual Studio 2019 version 16.8 and later
125124

@@ -175,10 +174,10 @@ Here's how to use Git in Visual Studio 2019 [**version 16.8**](/visualstudio/rel
175174

176175
![Screenshot of the 'Open a project or solution' window in Visual Studio 2019 version 16.8 and later.](../ide/media/vs-2019/open-local-project-from-cloned-repo.png)
177176

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.
179178

180179
> [!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.
182181
>
183182
> ![Screenshot of the Git menu in Visual Studio 2019 version 16.8 and later, with the Local Repositories option expanded.](../ide/media/vs-2019/git-menu-local-repositories.png)
184183
@@ -206,15 +205,15 @@ Here's how to use Git in Visual Studio 2019 [**version 16.7**](/visualstudio/rel
206205

207206
![Screenshot of the Solution Explorer drop-down list in Visual Studio 2019 version 16.7 and earlier.](./media/open-proj-repo-github-solutions-folders-picker.png)
208207

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.
210209

211210
Start coding!
212211

213212
## Browse to an Azure DevOps repo with Visual Studio 2019
214213

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.
216215

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.
218217

219218
### Visual Studio 2019 version 16.8 and later
220219

@@ -278,7 +277,7 @@ But no matter which version you have installed, you can always browse to and clo
278277

279278
![Screenshot of the 'Solutions and Folders' notification from Team Explorer in Visual Studio 2019 version 16.7 and earlier.](./media/open-proj-repo-solutions-folders.png)
280279

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.
282281

283282
::: moniker-end
284283

0 commit comments

Comments
 (0)