MSBuild provides its own comprehensive cleaning capabilities through the Clean target. To clean a solution using MSBuild from the command line: