How to Add Project on Azure Devops using Visual Studio 2019
Tags: azure, devops, teamfoundationserver, tfs
Published: 2020-05-06 01:41:21

Did you love my post? <a href="https://www.buymeacoffee.com/willydavidjr"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=willydavidjr&button_colour=f25a71&font_colour=000000&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00"></a>

Formerly known as Visual Studio Team Services, Azure Devop is a cloud-based version control which offers developers solutions to collaborate on code and track changes visually with unlimited free private Git/TFVC repos on which you the selection to choose either **Git** or **Team Foundation Version Control (TFVC)**.

So in order to add your projects or solution in Azure DevOps first, go to https://dev.azure.com/ which will redirect you to Azure Devops main site then signup for your account.

## Connecting on Azure Repositories.

After login, in order to create and add your repository project, you need to create New Organization first. An organization is like a group of projects or a collection of your related projects.

**Organization:**

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bkr8l948q0vdkxi0n7k5.JPG)

Afterwards, you can now add new repository by clicking New Project.

**New Project:**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/yhzip504diof2ocqf3cs.JPG)

Once you clicked New Project, a dialog will appear on the right side, fill up the necessary fields, and Choose the Version Control to **Team Foundation Version Control** as highlighted on image.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/gopfaru8rxcbcjzrptbb.JPG)


## Linking your local project in Azure Repository Online

Now go to your solution on your machine by opening it on your Visual Studio IDE. In my case, I am using Visual Studio 2019, but this should work the same way on Visual Studio 2015 and 2017 as I have the same IDEs as well.

Go to View -> Team Explorer, then select Manage Connections. You can click either of the options I circled in Red, both will result in a dialog options to Connect to a Project.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/o36wmty3pffeg8sw18co.JPG)

Sign-in to your existing account that you used to signup on Dev Azure. Once login, it will automatically populate your related repo that you created awhile ago. On my side, I am connecting to Hello MVC Core repo.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/s4h99o28py09aazap7rf.jpg)

Once you select your repo and click the Connect button, go back to your Solution Explorer, right click your Solution and select **Add Solution to Source Control**. Select the name of the Azure Repo project you have added online. Type a name for the solution folder then select Ok.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/dnjugy02vmfdemj6oz8g.jpg)

Wait for few seconds, until you see a plus sign on files on your Solution Explorer. You will notice that your files will have a plus sign before its filename. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/h354nyc3woooywewrvnd.JPG)

Afterwards, right click again on your solution on Solution Explorer, then select Check-In...

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/uc0iymyahb88zziko4qr.JPG)

You're almost done. Compose a descriptive message for your checkin, then your done. Your solution on your local machine is now linked to a version control online!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/y2ykpul0i7qn7wy3ks07.JPG)