Visual Studio 2022 Building Launches microsoft online login multiple times

TCH 26 Reputation points
2024-05-30T16:37:56.3933333+00:00

Suddenly, when building any solution, the browser launches and prompts me to login to Microsoft Online multiple times during the build.

This happens even if I am online, logged in via Visual Studio and sync is Active.

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-05-31T03:30:00.9133333+00:00

    Hi @TCH, 

    Welcome to Microsoft Q&A! 

    Please try the following:

    1. Update your VS2022 to the latest version with Visual Studio Installer.
    2. Enter “devenv /ResetSettings” at Developer Command Prompt to restore your Visual Studio default setting.
    3. Close all running VS instances and delete all files of %localappdata%\.Identityservice.
    4. Go to Tools > NuGet Package Manager > Package Manager Settings > Package Sources > check if you have a custom package source > open the package source from your browser > log into it.
    5. Go to Tools > Options > Environment > Accounts > uncheck all checkbox.
    6. Sign into VS with a new account. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.