Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reason for ExtractMethodCodeRefactoringProvider encountered an error and has been disabled?

I'm getting this error, when I'm trying to extract the method from code by using right-click on a selected code(Quick Actions and Refactoring) or Ctrl + ..

I'm using Visual Studio 2015. I'm able to refactor for other projects in a different solution. My solution has multiple projects, it's not working on all the projects under this solution.

I tried the same thing using Visual Studio 2010, this is working fine with a solution.

It's showing this error only in Visual Studio 2015.

so is this a bug in Visual Studio 2015? or I need to make some settings in Visual Studio or in code, solution or projects?, I never saw this error before with Studio 2015.

Error

FYI: It's not a compilation error, It's just a warning, It's not stopping me to run the application or debug.

like image 204
vivek nuna Avatar asked Nov 15 '16 11:11

vivek nuna


2 Answers

Seems like a bug and it is now fixed (currently pending release)

https://developercommunity.visualstudio.com/content/problem/24463/extractmethodcoderefactoringprovider-encountered-a-2.html

like image 195
Eric Bole-Feysot Avatar answered Oct 04 '22 16:10

Eric Bole-Feysot


The issue has been fixed and be released in VS 15.3.

HTH

like image 30
Shimmy Weitzhandler Avatar answered Oct 04 '22 18:10

Shimmy Weitzhandler