Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes the MSB6001 error code.
Message text
MSB6001: Invalid command line switch for 'value'.
Description
This error occurs when an MSBuild task is supplied an invalid command-line option. The output message contains a second error with more details about the problem.
Common causes of this error include:
- Illegal characters in a path, or incorrect placement of quotes.
- A spelling error in the syntax of the switch.
- The version of the tool in use doesn't support the specified switch.
Resolution
Look to the extra error information provided to determine the cause of the problem.
Check for illegal characters in the path. Confirm the placement of quotes to ensure they're used appropriately.
Applies to
All versions of MSBuild