You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SDK defined properties overwrites WarningsAsErrors on solution level #3613
#1329 introduced this problem assuming that only an existing list of warnings is used.
It is not working for "all warnings as error".
The only work-around I found so far is: Specify <WarningsAsErrors /> in each project explicitly. But I would like to ensure enabling it in ALL projects.
@lg2de Can you put <WarningsAsErrors /> in the Directory.Build.targets file instead of the .props? Then it would set it after the default values from the .props.
I also think it would make sense to change the relevant line in the props to this::
Activity
lg2de commentedon Sep 9, 2019
#1329 introduced this problem assuming that only an existing list of warnings is used.
It is not working for "all warnings as error".
The only work-around I found so far is: Specify
<WarningsAsErrors />in each project explicitly. But I would like to ensure enabling it in ALL projects.dsplaisted commentedon Sep 13, 2019
@lg2de Can you put
<WarningsAsErrors />in the Directory.Build.targets file instead of the .props? Then it would set it after the default values from the .props.I also think it would make sense to change the relevant line in the props to this::
do not overwrite "all warnings as errors" (fixes dotnet#3613)
lg2de commentedon Sep 14, 2019
Hey @dsplaisted. That's exactly what I thought. I created PR #3645 for it right away.
do not overwrite "all warnings as errors" (fixes dotnet#3613)
Merge pull request #3645 from lg2de/WarningsAsErrors
Update dependencies from https://github.com/dotnet/cli build 20191116…