There are a few different reasons that the msb6006 cl exe error code can happen. This error code is typically associated with the Microsoft C++ compiler, and it means that there was a problem with compiling the code. The most common reason for this error code is that there are some missing or corrupt files in the C++ compiler. Another possibility is that there is a conflict between the C++ compiler and another program on your computer. To fix this error, you should first try reinstalling the C++ compiler. If that does not work, then you can try repairing the files that are causing the problem.
1. Check the CL.exe file for any corruption
- Open the Command Prompt and type "cmd"
- In the Command Prompt window, type "cl" and press Enter
- Type "cmdfile" (without the quotes) and press Enter
- Type "exitcode" (without the quotes) and press Enter
- Type "?," and press Enter
- Type "help" (without the quotes) and press Enter
- Type "cl" (without the quotes), and press Enter
- Type "info" (without the quotes), and press Enter
- Type "version" (without the quotes), and press Enter
- Type "?," and press Enter
- Type "help" (without the quotes), and press Enter
- Type "cl" (without the quotes), and press Enter
- Type "ver" (without the quotes), and press Enter
- If the CL.exe file is corrupted, the exit code will be 0x80070020.
2. Repair the Visual C++ installation
The steps to Repair the Visual C++ installation in order to fix error msb6006 cl exe exited with code 0x80070057 are as follows:
- Open the "Control Panel" from the "Start" menu.
- Click on "Visual C++".
- Click on the "Install/Remove Programs" button.
- Select the "Visual C++ 2010 x64" option from the list of programs.
- Click on the "Remove" button.
- Click on the "OK" button.
- Click on the "Close" button.
- Reboot the computer.
3. Re-install the Visual C++ Redistributable Package
Step 1: Insert the Visual C++ Redistributable Package CD into your computer. Step 2: Double-click the "setup.exe" file to launch the setup program. Step 3: Click on the "InstallShield Express" button to start the installation process. Step 4: Follow the on-screen instructions to complete the installation. Step 5: Restart your computer after the installation is complete. Step 6: If you are having trouble with the installed Visual C++ Redistributable Package, please try the following solutions: a. Repair the installation by following the on-screen instructions. b. Re-install the Visual C++ Redistributable Package from the CD. c. Download the latest version of the Visual C++ Redistributable Package from the Microsoft website.
4. Delete the CL.exe file and re-download it from Microsoft
Delete CL.exe:
-
On your computer, open the Windows Start menu and search for "Command Prompt."
-
When Command Prompt appears, right-click on it and select "Run as Administrator."
-
In the Command Prompt window, type the following command and press Enter: del cl.exe
-
Restart your computer.
-
Re-download the CL.exe file from Microsoft. Re-download CL.exe:
-
On your computer, open the Windows Start menu and search for "Command Prompt."
-
When Command Prompt appears, right-click on it and select "Run as Administrator."
-
In the Command Prompt window, type the following command and press Enter: download cl.exe
-
Restart your computer.
-
Re-download the CL.exe file from Microsoft.
5. Update the Windows operating system
- On your computer, open the Start menu.
- In the Start menu, right-click the Windows logo, and then click Update and Security.
- In the Update and Security window, click Windows Update.
- In the Windows Update window, click Check for Updates.
- In the Check for Updates window, click Yes, update my computer.
- In the Search for Updates window, click Install updates.
- In the Installed updates window, click the Update tab.
- In the Update tab, under Available updates, click the Important updates link.
- In the Important updates window, click the Install updates button.
- In the Install updates window, click the Restart now button.
- After the computer restarts, Windows will start the update process.
- When the update process is complete, Windows will restart.
- After the computer restarts, Windows will finish setting up the new update.
Still not working? maybe try one of these options:
- Install the latest service pack for the Visual C++ installation.
- Register the CL.exe file.
- Run a virus scan on the computer.