Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Visual Studio 2022 Sign In prompt?

I recently upgraded to VS 2022 17.2.0. Now, every time I start up VS, I get prompted to sign-in. The dialog says "Visual Studio" across the top, and has a button labeled "Sign-in options" on the bottom.

I have no interest in linking to a Microsoft account.

I've gone into Tools | Options | Environments | Accounts and unchecked all the checkboxes. Still getting the sign-in prompt.

Any way to disable it? This only started happening on 17.2.0.

NOTE: this is NOT the dialog with the "Not Now" option.

like image 695
SledgeHammer Avatar asked Jan 23 '26 17:01

SledgeHammer


1 Answers

I've been experiencing exactly the same problem, and I'm slightly dissapointed no one else has been able to find a solution...

Here's what I eventually figured out: In your visual studio install, go to the following folder: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86

There's an executable named "ServiceHub.IdentityHost.exe". I simply closed Visual Studio, then renamed that exe to "ServiceHub.IdentityHost_disabled.exe" so it doesn't run when VS starts.

As of my most recent test, that appears to remove the login prompt entirely.

A note of warning: Do not open "Account Settings..." from within Visual Studio. The window will appear mostly empty, and if you close that Visual Studio will crash because it's waiting on the service that we've disabled.

like image 52
Sollace Avatar answered Jan 25 '26 13:01

Sollace



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!