Today I had to make a fix in an old project that was still using Team Foundation Version Control (TFVC). It immediately made me appreciate GIT a lot more but that is not what I want to talk about today.
After making my changes I had to check-in my changes (remark: commit my changes if you want to use the GIT terminology). One of the features that TFVC had to offer was the concept of check-in policies, rules that could be checked and validated before you can check-in your changes in the central source repository.
This was a feature we used a lot to improve the quality of the code and capture some mistakes as soon as possible. This time when I tried to check-in my changes, I noticed the following warning in Visual Studio:
Obsolete policies are being applied and should be updated.
This is because the way that TFVC check-in policies are stored in Azure DevOps has changed. This migration is required for keeping TFVC check-in compatible with the future Azure DevOps versions. The good news is that for every old policy, a new policy is created that guarantees future compatibility. For the time being, both old (Obsolete) and new policies remain valid and functional.
Let me show you how to update your policies:
- In Visual Studio, open the Azure DevOps overview screen. Click on Settings.
- On the Settings screen, click on Source Control under the Team Project settings.
- On the Source Control Settings screen, go to the Check-in Policy tab and click on Remove for each of the obsolete policies.
- Afterwards click on Add… and choose the non-obsolete alternative of the check-in policies that you just removed.
- That’s it!
More information
Azure DevOps service updates and integration improvements | Microsoft Learn