Visual Studio 2010 prompt says Could not prepare files for refactoring. How do I fix this?
-
18-06-2021 - |
Question
I work in a C# environment doing web development using Visual Studio 2010 Ultimate. Intellisense is still working and my code compiles and runs fine, but I cannot refactor my code using the right click menu refactor tool. I'm instead prompted, "Could not prepare files for refactoring." I already reset my settings to defaults but no luck. It's still not working. Other functions are working correctly like go to definition, etc.
Solution 2
Problem was due to Web Deployment Projects Beta. I needed to uninstall the beta for visual studio 2010 and install Web Deployment Projects RTW.
OTHER TIPS
If you have Web Deployment Projects, I understand that deleting them fixes this (quite rare) issue.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow