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.
FYI: It's not a compilation error, It's just a warning, It's not stopping me to run the application or debug.
Seems like a bug and it is now fixed (currently pending release)
https://developercommunity.visualstudio.com/content/problem/24463/extractmethodcoderefactoringprovider-encountered-a-2.html
The issue has been fixed and be released in VS 15.3.
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With