ICscHostObject.SetTreatWarningsAsErrors(Boolean) Method

Definition

Specifies a value indicating whether to treat all warnings as errors.

C#
public bool SetTreatWarningsAsErrors(bool treatWarningsAsErrors);

Parameters

treatWarningsAsErrors
Boolean

true to treat all warnings as errors; otherwise, false.

Returns

true if the method was successful; otherwise, false.

Applies to

Tuote Versiot
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17