'Azure DevOps re-connect repository to existing folder
I have a number of projects in Azure DevOps that are saved through Visual Studio to my local drive. I just went through removing Visual Studio Community from my computer and installing Professional instead as I have a license. I am trying to reconnect all my local cloned folders to azure in the Team Explorer window.
I can't see any way to just re-set up the binding. In manage connections I can see all my projects, but the only option available is to choose a new empty folder and clone/download all the source code again.
Is there any way to just re-establish the connection from DevOps to my local folders??
Solution 1:[1]
You only need to open the local sln file in Visual Studio Professional.
Click on the option shown in the figure below, and you will find that there is already a connection between the cloned local repo and the remote repo.
In Team Explorer, you only need to connect to the repo.
Solution 2:[2]
In my case my solution would not even load the project in VS Professional 2022 after upgrading from VS Community 2022. I had to uninstall everything and then reinstall VS Professional 2022 and then everything reconnected automatically.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Hugh Lin |
Solution 2 | Nelson Nyland |