Add ASP.NET MVC Project In Visual Studio Online Or TFS

Create an ASP.NET MVC Project

Open Visual Studio 2015, click on File, choose New and then choose Project. It will open a New Project Dialog. 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.

Web Application

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

mvc

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:

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


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

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 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 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.

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:

message

Thanks for reading my article. Hope you enjoyed it.

Up Next
    Ebook Download
    View all
    Learn
    View all