Monthly Archives: August 2019

Requesting a Code Review in Visual Studio

As part of working on a team, expect to have code reviewed before checking it into the repository. If you happen to check in before a code review, I’ll show how to still submit a review request on that change set.

In the Team Explorer tab, go to the Pending Changes panel.

Go to Pending Changes

If you have pending changes, you can select Request Review from the Actions list.

Request Review

In the New Code Review panel, select a reviewer and leave a description of the change.

New Code Review

The reviewer can compare changes by clicking the file names and send back comments.

File Compare

Comment Review

The reviewer can mark the status as complete.

Review Complete

Finally, you can check in the change.

Check-in change

If the change was checked in before you requested a review, just go into source control explorer and view the change set in the project’s history. Right click the change set and request a review.

Change history

Request review on checked in change

TFVC with Azure DevOps

I used Git for version control and Jira for ticketing in my previous organization. Now, I am getting used to TFS and DevOps. Luckily, you can start using these at home without installing anything, assuming you have Visual Studio and an account at VisualStudio.com.

Log in to VisualStudio.com and navigate to the My Benefits section. Using My.VisualStudio.com works for now. You’ll be presented with various account benefits in the form of tools or resources. Click on Azure DevOps to get started.

VisualStudioMyBenefits

Be careful to use the free tier or you can wind up incurring charges from Azure.

When creating a project, you have the choice between Git and Team Foundation Server Control.

AzureDevops

DevOpsDashboard

 

Now you’ll be able to connect to this project from Visual Studio under Team Explorer > Manage Connections > Connect to a Project

ConnectToAProject

 

 

 

 

 

 

 

 

 

 

 

Find the project in the Source Control Explorer under the Team Explorer tab. Click the title in the Team Explorer window to toggle between Home, My Work, Pending Changes and Source Control Explorer.

To add an application to your DevOps project, right-click it and select Add New Items to Folder. Navigate to the folder and select finish. Then you should be able to open the solution file from solution control where you have a playground to start branching, merging, shelving and checking in changes.

SourceControlExplorer