Creating And Uploading A Code To TFVC Version Control In Visual Studio Online

Introduction

This article will be dealing with how to have your code uploaded to Visual Studio Online, so that your team can use the version control and build the automation features.

Note: Make sure, that you have worked on my previous articles before you surf this.

Links:

First, we need to create a solution and upload it to TFVC version control. Follow the steps, given below, now to do it:

Step 1: Open Visual Studio. You can do it from the home page of the team project.

Note: If you open Visual Studio, using the link in the team project home page, you will be prompted for your credentials and the connection to Visual Studio Online will be set up for you without having to do it by hand.
open Visual Studio

Step 2: From Team Explorer, click Configure your Workspace. Specify the path in your computer, where you want to work with the code for this team project. Click Map & Get.

Configure

Configure

Step 3: Click File – New – Project, choose the Console Application template under Visual C#, a name and the location under the mapped Workspace and check the Add to source control option. A C# file, Class1.cs, is automatically generated.

Note: At this point, you can upload your code. Thus, your team can collaborate around it. We are going to create a simple project in Visual Studio to show the process. If you prefer to upload the existing code, you can copy it to a folder under the mapped Workspace, open the solution and use the Add Solution to Source Control… option.

New

Step 4: Open the Source Control Explorer from Team Explorer. Show that the expected folder structure has been added to the Workspace.

Source Control Explorer

Step 5: Click Pending Changes. Write a comment for the check in operation and click Check In. Click Yes, when prompted for the confirmation.

Note: Checking in the pending additions will make the code available in the Server for other team members to work with it.

team members

Step 6: Get back to Internet Explorer. From the team project, navigate to CODE – Explorer, the folder that the source code was created in and show that the code has been uploaded.

Note: Now, other team members can get the code and begin to work with it; all the changes will be tracked by the version control system. From the Web interface, you can also do some basic operations like downloading a zipped copy, checking the history or setting up the security.

code

Follow my next article on Visual Studio Online to set up a continuous integration build definition.


Similar Articles