dotnet/msbuild
Warn about WriteLinesToFile default behavior which is Append
Aperta
#11.927 aperta il 29 mag 2025
help wantedtriaged
Metriche repository
- Star
- (5062 stelle)
- Metriche merge PR
- (Merge medio 11g 7h) (125 PR mergiate in 30 g)
Descrizione
WriteLinesToFile appends by default unless you specify Overwrite. This is highly non-intuitive and probably almost never what the user intends.
Since we can't change the behavior, I propose to introduce a new optional parameter Append, that defaults to false, and if it's not specified and Overwrite is not specified, warn about it (that you should specify one or the other).
Not sure if a warning or a message, perhaps build check?