nblockchain / fsx

FSX is the ideal tool for people that use F# for their scripting needs.
MIT License
14 stars 5 forks source link

Warnings are ignored in .NET6 #32

Closed knocte closed 1 year ago

knocte commented 1 year ago

If you place a test.fsx with a warning (in a place where there is no Directory.Build.props, and your current directory doesn't have this file either), e.g.:

let GiveMeBool():bool = false
GiveMeBool()
printf "hello"

This seems to not fail in .NET6:

"%programfiles%\fsx\fsxc.exe" -f test.fsx

While it seems it would fail in .NET4.x, judging by --warnaserror present in these lines 777,778 in Fsxc.fs:

                (sprintf
                    "%s %s %s --warnaserror --target:exe --out:%s %s"