VCMidlTool::WarnAsError Property

 

Gets or sets a value indicating whether the compiler treats all warnings as errors.

Namespace:   Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

property bool WarnAsError {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the compiler treats all warnings as errors; otherwise, false.

WarnAsError exposes the functionality of the C++ compiler's /w, /Wn, /WX, /Wall, /wln, /wdn, /wen, /won (Warning Level) option and the MIDL compiler's MIDL Property Pages: General option.

Return to top
Show: