Home > OS >  Default repo location ignored in VS2022
Default repo location ignored in VS2022

Time:01-25

VS2022 is ignoring my default repo path:

enter image description here

I have tried setting the correct path here:

enter image description here

(Yes, I clicked OK to save.)

The setting doesn't stick. After restarting VS and going back into that setting, I see that the setting has been blanked:

enter image description here

I tried restarting VS2022. It didn't help. I have re-entered the path, saved, restarted VS several times. It always gets blanked, and even before restarting, the default path isn't honored when I Connect to a Project.

What am I doing wrong? What am I missing?

CodePudding user response:

Default repo location ignored in VS2022

I have test it on my side, it works fine.

Please try to update your Visual Studio to the latest version, my current visual studio version is Version 17.0.5:

enter image description here

And if it still not work for you, please try to add the user name and e-mail as well.

CodePudding user response:

I found the solution. Turns out when your configured repo points to Git, you need to enter that default path from this angle:

enter image description here

Trying to do it from Tools -> Options -> Projects & Solutions -> Locations or even Tools -> Options -> Source Control -> Git Global Settings doesn't seem to stick when saved.

  •  Tags:  
  • Related