Thanks for reaching out!
This is a common VS Code sign-in/Sync issue, usually caused by blocked authentication, cached credentials, or network restrictions, not by the C# Dev Kit itself.
Try these fixes (in order):
1.Sign in via VS Code Accounts (not the extension)
- Open VS Code
- Press ctrl+ shift+ P
- Run Accounts: sign in
- Choose Microsoft or GitHub
- After sign-in succeeds, reopen C# Dev Kit
C# Dev kit uses the global VS Code account, not a separate login.
2. Clear VS Code cached credentials: Sometimes a broken auth cache causes this error
- Close VS Code, Delete these folders:
Windows: %APPDATA%\Code\User\globalstorage
%APPDATA%\Code\CachedData
MacOS: ~/Library/Application Support/Code/User/globalStorage
Linux: ~/ .config/code/User/globalStorage
Then reopen VS code and sign in again.
3.Check network/Proxy/firewall: This error often happens if:
- You're behind a corporate proxy
- Firewall blocks github.com,
login.microsoftonline.com
If using a proxy:
- Open Settings
- Search proxy
set: "https.proxySupport": "on"
Or temporarily test on a different network (Mobile hotspot)
4.Update VS Code: older VS Code versions have broken auth flows.
- Help -> Check for updates
- Restart after updating
**
5.Sign in via browser manually:** If login window fails:
- Run Accounts: Sign in
- When browser opens, completely login fully.
- Ensure browser is not blocking pop-ups or third-party cookies.
Let me know if you need any further help with this. I will be happy to assist.
If you find this helpful, Kindly mark the provided solution as "Accept Answer", so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.