Create an ASP.NET MVC Project

Open Visual Studio 2015, click on File, choose New and then choose Project. It will open a New ProjectDialog. Inside the Installed Template, choose Visual C# and then choose Web. After that select ASP.NET Web Application and provide proper name and click OK.

Asp.Net Web Application

It will open a new dialog where you can choose different types of project. Choose MVC as the project and click OK.

Asp.Net MVC Template

It will take some time and create a new project for you. When you will see the project inside the solution explorer then the following project structure is visible:

Asp.Net MVC Project Structure

So, I have created an ASP.NET MVC project inside the d:/ drive. To add it to Visual Studio Online, click on Team Menu and choose Manage Connections. 

Manage Connections

If you are using the older version then you need to add server in “Team Foundation Server”.

Team Foundation Server

When you choose Manage Connections, It will open Connect to Team Foundation Server. Choose your server if you have and if not you can add here.

To add new server, choose Server and then click Add.
Add TFS Connection

After choosing the server, it will open a new dialog to add new.

Add Team Foundation Server

It will add your Team Foundation Server with your Visual Studio. I have already added it.

So, let’s continue.

Choose your Team Foundation Server and click to connect.

Connect to Team Foundation Server

To add this Solution to your Team Foundation Server, Right click to Solution and choose Source Control.

Control

It will ask you to choose source control and you need to use Team Foundation Version Control. Now click OK.
Team Foundation Server Version Control

It will open a dialog which shows all your projects inside the Source Control. Choose that project where you want to add your project and click on OK.

Source Control

Now, go to Team explorer and choose Pending Changes.

Pending Changes

You will see that all the files of your project are ready for check in. Enter your comment in comment section and click on Check In.

TFS-Code-Check In

It will take some time depending upon your project size and finally it will show you a message as in the following screenshot:

TFS

Thanks for reading my article. Hope you enjoyed it.