Visual Studio 2022 TFVC

95 views Asked by At

I have switched computers and copied my VS project folder to my new computer. Now, I am having trouble getting my Visual Studio TFVC working.

If I click the File -> Source Control -> Advanced -> Change Source Control menuitem it shows that my bindings are valid.

However, in Visual Studio when I click Pending Changes it wants to Add most of the files in my project. For the files it doesn't want to add they have a red check mark in Solution Explorer indicating the files are different than what is in Source Control.

Does anyone know how I can get my local files to sync up with my files in Source Control?

1

There are 1 answers

0
Ziyang Liu-MSFT On

You can create a shelveset for the pending changes in the old machine, then connect to TFS from the new machine and map to a new workspace, then find the shelveset and unshelve, all the pending changes will be back to your new workspace. See the detailed steps from Move TFS workspace to new machine.