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.
It will open a new dialog where you can choose different types of project. Choose MVC as the project and click OK.
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:
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.
If you are using the older version then you need to add server in “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.
After choosing the server, it will open a new dialog to add new.
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.
To add this Solution to your Team Foundation Server, Right click to Solution and choose Source Control.
It will ask you to choose source control and you need to use Team Foundation Version Control. Now click OK.
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.
Now, go to Team explorer and choose 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.
It will take some time depending upon your project size and finally it will show you a message as in the following screenshot:
Thanks for reading my article. Hope you enjoyed it.