ExtractMethodCodeRefactoringProvider的原因遇到错误并已被禁用? [英] Reason for ExtractMethodCodeRefactoringProvider encountered an error and has been disabled?
问题描述
当我尝试通过右键单击所选代码(快速操作和重构)或Ctrl + .
来从代码中提取方法时,收到此错误.
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 + .
.
我正在使用Visual Studio2015.我能够在其他解决方案中重构其他项目.我的解决方案有多个项目,但不适用于该解决方案下的所有项目.
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.
我使用Visual Studio 2010尝试了相同的操作,这可以很好地解决问题.
I tried the same thing using Visual Studio 2010, this is working fine with a solution.
仅在Visual Studio 2015中显示此错误.
It's showing this error only in Visual Studio 2015.
这是Visual Studio 2015中的错误吗?还是需要在Visual Studio或代码,解决方案或项目中进行某些设置?,在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)
这篇关于ExtractMethodCodeRefactoringProvider的原因遇到错误并已被禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!