user20660199
user20660199

Reputation: 31

Could not load file or asssembly 'Microsoft.identity.client'

I want to install Github Copilot extension in Visual studio 2022. when i install it, i close all vs 2022 as instructed then i am supposed to receive a message saying that it was done.

However i keep getting an error from VSIX Installer saying:

Could not load file or asssembly 'Microsoft.identity.client, version=4.30.0.0,culture=neutral,PublickeyToken=0a613f4dd989eBae' or one of its dependencies. the located assembly's manifest definition does not match the asssembly reference.(Exception from HRESULT: 0x801311040).

I get the same message when i try to update any extensions i have in visual studio 2022

PS: I already installed Copilot in VsCode and it working perfectly.

Thank you!

Upvotes: 2

Views: 2579

Answers (2)

user20660199
user20660199

Reputation: 31

It FINALLY worked. The error happened because I didn't have app installer and Microsoft store so I had to reset my windows 10 then the problem was solved.

Upvotes: 1

user19960141
user19960141

Reputation: 41

Try logging in from a clean state:

  1. Close Visual Studio 2022.
  2. Delete C:\Users\AppData\Local\github-copilot\hosts.json
  3. Log out of GitHub in the web browser.
  4. Open Visual Studio.

Upvotes: 0

Related Questions