Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015: Quick Actions no longer working, error: Could not load file or assembly Microsoft.CodeAnalysis

Until yesterday, I could happily use Quick Actions and Refactoring in Visual Studio 2015. Today, it no longer works, even after restarting the PC and creating a completely new solution.

Yesterday, when I changed a variable name, a light bulb appeared and I could ask VS to rename wherever this variable name was used.

Today, the light bulb does not appear. When I right click the variable name, I can select the menu Quick Actions and Refactoring, but then I get the error message: "Could not load file or assembly Microsoft.CodeAnalysis, Version=1.3.1.0, Culture=neutral, OublicKeyTaken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

Any help with fixing this problem is appreciated.

like image 974
Peter Huber Avatar asked Feb 27 '17 11:02

Peter Huber


1 Answers

I had the same problem with Visual Studio 2015 Update 2. I solved it by installing Update 3 for Visual Studio 2015.

like image 79
xerdan Avatar answered Oct 18 '22 18:10

xerdan