Connecting to Azure DevOps Git from Visual Studio 2022 Empties Solution Explorer

286 views Asked by At

I've used Azure DevOps TFS for years. I'm trying to tackle switching to Azure DevOps Git. So far...not so good. I'm hoping someone can spot the error of my ways and point me in the right direction. All of this is using Visual Studio 2022.

Step 1: Create a new Project in Azure DevOps called "GitTest"

Step 2: Create a new Umbraco site in Visual Studio called "GitTest"

Step 3: Using Team Explorer in Visual Studio connect to the "GitTest" project in DevOps from Step 1.

As soon as I complete Step 3, my solution explorer is blank.

Here's my Solution Explorer before Step 3:

enter image description here

Here's my Solution Explorer after Step 3:

enter image description here

In case you're wondering here's what my screen for Step 3 looks like:

enter image description here

1

There are 1 answers

1
Kevin Lu-MSFT On BEST ANSWER

I can reproduce the same issue. When I connect to Azure DevOps Service without cloning the repo, the Solution Explorer will show blank page.

enter image description here

To solve this issue, you need to set the option: Close open solutions not under Git when opening a repository to No in Git -> Settings -> Git Global Settings.

enter image description here

Then it will keep the solution after connect to Azure DevOps.