Compiler Error CS2032
Updated: July 20, 2015
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Character 'character' is not allowed on the command-line or in response files
Response files and the command line options for csc.exe cannot contain ASCII control characters in the range 0-31 or the pipe (
Compiler error CS2032 is difficult to demonstrate from the command line because the command line processor and the integrated development environment (IDE) filter out characters that are not valid. The following procedure generates the error by using a response file.
In the My Documents folder, create a text file that is named CS2032.rsp, and then enter the following compiler options in it:
In the My Documents folder, create a text file that is named cs2032.cs and that contains whatever you want.
Open Start, and then choose All Programs, Microsoft Visual Studio 2010, Visual Studio Tools, Visual Studio Command Prompt.
The Visual Studio Command Prompt window opens.
In the Visual Studio Command Prompt window, change the current directory to C:\Users\YourUsername\Documents.
Run the following command from the Visual Studio Command Prompt:
The CS2032 error message appears because the response file, CS2032.rsp, contains a pipe character.