How to clean and rebuild a Visual Studio solution to resolve fatal errors?

Question

Grade: Education Subject: Support
How to clean and rebuild a Visual Studio solution to resolve fatal errors?
Asked by:
74 Viewed 74 Answers

Answer (74)

Best Answer
(393)
Cleaning and rebuilding your solution is a simple but often effective troubleshooting step. In Visual Studio, go to Build -> Clean Solution, then Build -> Rebuild Solution. This forces Visual Studio to recompile all project files from scratch, which can resolve issues caused by corrupted intermediate files or build artifacts. If that doesn't work, try a 'Clean' followed by a 'Rebuild All'.