1

So I have never experienced this issue before and hope that someone else has. I'm working on a application and make a few changes then commit and push to GitHub. Once I do this the project I made changes gets unloaded from Visual Studio. When I try to reload the project I get the following error.

enter image description here

If I clone a new copy of the repo locally I can make changes and use the solution as usual, but this happens again if I make a commit and push it to GitHub.

Any thoughts would help!

NorSer
  • 134
  • 2
  • 13

2 Answers2

1

Looks like the project I was working on would only open in VS 2019 and VS 2022 caused this issue. Not sure why, but it works now.

NorSer
  • 134
  • 2
  • 13
0

Try first to launch Visual Studio without extension (/SafeMode) and reload your project then.

That would check if the error is linked to an extension/plugin or not.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I'm not using VSCode, but would this still work in the standard Visual Studio IDE? – NorSer Jun 30 '22 at 11:53
  • @NorSer Sorry for the mix-up. I have edited the answer to address Visual Studio, not VSCode. – VonC Jun 30 '22 at 12:47
  • I tried launching Visual Studio using the method you described. (See image below) [Command](https://imgur.com/a/2ZMsZno) Then when I opened the solution none of the projects loaded. (see image below) [Projects](https://imgur.com/a/GlAUa5A) – NorSer Jun 30 '22 at 14:32
  • @NorSer Can you try and [reload the solution/project](http://www.liangshunet.com/en/202007/934375421.htm)? – VonC Jun 30 '22 at 19:59
  • When I reload the project / solution I get the same error. – NorSer Jul 01 '22 at 01:41
  • I get this error when I load the solution in SafeMode `D:\Path\To\Project\project.csproj : error : Project '{ProjectName}' could not be opened because the Visual C# 2022 language service could not be created. Could not load file or assembly 'Microsoft.VisualStudio.LanguageServer.Client, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.` – NorSer Jul 07 '22 at 01:24
  • @NorSer OK, that could be because, in safe mode, no extension is loaded. Try and activate just that one extension – VonC Jul 07 '22 at 04:12