TreatWarningsAsErrors doesn't work for MSB3836
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 139
Description
### Issue Description
TreatWarningsAsErrors doesn't work for MSB3836
### Steps to Reproduce
even when specifying
`true`
the warning is not treated as error
`C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2424,5): warning MSB3836: The explicit binding redirect on "System.Net.Http, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" conflicts with an autogenerated binding redirect. Consider removing it from the application configuration file or disabling autogenerated binding redirects. The build will replace it with: "".
`
got to specify additionally:
`MSB3836`
after this the warning is treated as error
`C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2424,5): error MSB3836: The explicit binding redirect on "System.Net.Http, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" conflicts with an autogenerated binding redirect. Consider removing it from the application configuration file or disabling autogenerated binding redirects. The build will replace it with: "".
`
### Versions & Configurations
C:\Program Files\Microsoft Visual Studio\2022\Enterprise>msbuild /version
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
17.0.0.52104
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.