Configure Visual Studio to connect to Azure DevOps
This unit explains how to configure Visual Studio to connect to the Team Foundation Version Control Services in Azure DevOps.
When you have a project in Azure DevOps to host your repository, you are ready to connect with Visual Studio to start developing. Everything you need to interact with Team Foundation Version Control is found in the Team Explorer window. In Visual Studio 2022, which is the version that the finance and operations apps development tools use, open this window by selecting View > Team Explorer.
Before you connect, make sure that Visual Studio uses the correct source control plug-in. Select Tools > Options > Source Control > Plug-in Selection, and then select Visual Studio Team Foundation Server in the Current source control plug-in field.
To connect to an Azure DevOps project from Visual Studio, follow these steps:
- Select Manage Connections in the Team Explorer window. This option might appear simply as a green plug icon.
- All the existing project connections from your local machine will be available to select in the window that appears. Right-click and select Connect to make the connection.
- In the window that opens in the Team Explorer window, select Manage Connections.
- Select Connect to Team Project. This will open a new dialog box.
- In the dialog box, select Servers.
- This opens a new dialog box, where you will enter the URL of your Azure DevOps organization. The URL is usually in the
dev.azure.com/organizationnameformat, though older organizations might still use theorganizationname.visualstudio.comformat. The remaining fields will be automatically populated. - After you confirm these settings, a new dialog box will prompt you to sign in to Azure DevOps.
- When you have signed in, select the box for the desired Azure DevOps project on the Team Projects pane.
- Select Connect.
- Select Advanced Configuration to open a dialog box for adjusting the parameters of your workspace mapping.
- Select Advanced in this dialog box for more options.
- Change the workspace from a Private workspace to a Public workspace.
- In the Working folders table, remove all existing mappings.
- On a new row of the table, map the Projects folder of the desired branch of your Azure DevOps project to your local user's Projects folder for Visual Studio.
- On another row in the table, map the Metadata folder of the same branch of your Azure DevOps project to the Packages Local Directory folder of the AOS Service drive.
- Select OK.
- Select Close to exit all open dialog boxes.
Note
These mappings apply to a development environment that hosts the Application Object Server (AOS) locally. If you develop in a unified developer environment, the finance and operations apps extension for Visual Studio 2022 stores metadata locally on your development machine, so map the Metadata folder to the folder that you configured as the folder for your own custom metadata. For more information, see Install and configure development tools.
