8
votes

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.

2
@Mahdi: I saw that post before I asked my question. There it was a compilation problem and the error was "The located assembly's manifest definition does not match the assembly reference", which I don't get. My VS compiles just fine. So far I only noticed a problem in the editor. I also don't know how I can apply their solution for a web project to my console application. - Peter Huber
This has just started happening to me too. A coincidence that you saw it only 3 days ago as well? - Paul Stephenson

2 Answers

7
votes

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

1
votes

Quick actions and other intellisense functions were not working for me. When I started visual studio, the Solution Explorer pane was defaulting to Folder View, rather than Solution ViewSolution vs Folder view

Setting it back restored the proper functionality. Visual Studio had defaulted to starting in this mode. To start Visual Studio in Solution mode, go to Options/Projects and Solutions/General and ensure that Track Active Item in Solution Explorer is checked.