Open teo-tsirpanis opened 1 year ago
@teo-tsirpanis thanks for reporting, can you send a PR?
I can't understand what the correct code would be. I would have already sent it if I could. 😅
@yazeedobaid I want to fix the bug, can you help me understand it? What should appendQuotedIfNotNull
do?
@teo-tsirpanis the function should escape quotations in the passed string if it has any. It is being discussed in this PR https://github.com/fsprojects/FAKE/pull/2739
In https://github.com/fsprojects/FAKE/blob/8dbf221729c40be34a2907fcf49a707c029a752b/src/app/Fake.Core.String/StringBuilder.fs#L69-L75 we are appending nothing if
value
is null, but if it isn't we append boths
andvalue
.This doesn't work well with code like https://github.com/fsprojects/FAKE/blob/8dbf221729c40be34a2907fcf49a707c029a752b/src/app/Fake.DotNet.MSBuild/MSBuild.fs#L684-L687
value
isSome
, which is a function, and displaying does not make any sense, leading to errors like https://ci.appveyor.com/project/teo-tsirpanis/farkle/builds/45896483/job/9et0xrw72ibtg3ar#L6292.