Common.targets does respect the "plain property" version of some warning-related settings:
|
<PropertyGroup> |
|
<MSBuildWarningsAsMessages Condition="'$(MSBuildWarningsAsMessages)'==''">$(NoWarn)</MSBuildWarningsAsMessages> |
|
<MSBuildWarningsAsErrors Condition="'$(MSBuildWarningsAsErrors)'==''">$(WarningsAsErrors)</MSBuildWarningsAsErrors> |
|
<MSBuildWarningsNotAsErrors Condition="'$(MSBuildWarningsNotAsErrors)'==''">$(WarningsNotAsErrors)</MSBuildWarningsNotAsErrors> |
|
</PropertyGroup> |
but it doesn't do the broader setting MSBuildTreatWarningsAsErrors in the same way.
This adds to the confusion about which settings to use.
Common.targets does respect the "plain property" version of some warning-related settings:
msbuild/src/Tasks/Microsoft.Common.CurrentVersion.targets
Lines 668 to 672 in 69b3e7a
but it doesn't do the broader setting
MSBuildTreatWarningsAsErrorsin the same way.This adds to the confusion about which settings to use.