/errorreport (Set Error Reporting Behavior) (C# Compiler Options)
This option provides a convenient way to report a C# internal compiler error to Microsoft.
Reports about internal compiler errors will not be collected or sent to Microsoft.
Prompts you to send a report when you receive an internal compiler error. prompt is the default when compiling an application in the development environment.
Queues the error report. When you log in with administrator privileges, a pop-up window opens and enables you to report any failures since the last time you were logged in. You will not be prompted to send reports for failures more than once every three days. queue is the default when compiling an application at the command line.
Automatically sends reports of internal compiler errors to Microsoft. To enable this option, you must first agree to Microsoft’s data collection policy. The first time you specify /errorreport:send on a computer, a compiler message will refer you to a Web site that contains Microsoft’s data collection policy.
An internal compiler error (ICE) results when the compiler cannot process a source code file. When an ICE occurs, the compiler does not produce an output file or any useful diagnostic that you can use to fix your code.
In previous releases, when you got an ICE, you were encouraged to call Microsoft technical support to report the problem. With /errorreport, you can provide ICE information directly to the Visual C# team. Your error reports can help improve future compiler releases.
A user's ability to send reports depends on machine and user policy permissions.
For more information on error debugger, see Description of the Dr. Watson for Windows (Drwtsn32.exe) Tool.
To set this compiler option in the Visual Studio development environment
Open the project's Properties page. For more information, see.
Click the Build property page.
Click the Advanced button.
Modify the Internal Compiler Error Reporting property.
For information on how to set this compiler option programmatically, see.