Поделиться через


Csc.ErrorReport Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the method to report a C# internal compiler error to Microsoft.

MSBuild is now included in Visual Studio instead of the .NET Framework.You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property ErrorReport As String
public string ErrorReport { get; set; }
public:
property String^ ErrorReport {
    String^ get ();
    void set (String^ value);
}
member ErrorReport : string with get, set
function get ErrorReport () : String 
function set ErrorReport (value : String)

Property Value

Type: System.String
The method to report a C# internal compiler error to Microsoft.

Remarks

This property can have a value of prompt, send, or none. If the property is set to prompt, you will receive a prompt when an internal compiler error occurs. The prompt lets you send a bug report electronically to Microsoft. If the property is set to send, a bug report is sent automatically. If the property is set to none, the error is reported only in the text output of the compiler. Default is none. For more information, see /errorreport (Set Error Reporting Behavior).

.NET Framework Security

See Also

Reference

Csc Class

Microsoft.Build.Tasks Namespace