Compiler Error CS2032
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 (|
) character.
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.
To generate this error
In the My Documents folder, create a text file that is named CS2032.rsp, and then enter the following compiler options in it:
/target:exe /out:cs|2032.exe cs2032.cs
In the My Documents folder, create a text file that's named cs2032.cs and that contains whatever you want.
Open Visual Studio Developer Command Prompt or Visual Studio Developer PowerShell.
Change the current directory to
C:\Users\\<YourUsername>\Documents
.Run the following command from the command prompt:
csc @cs2032.rsp
The CS2032 error message appears because the response file, CS2032.rsp, contains a pipe character.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for