We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b53a2d + 62135d9 commit 832e9f1Copy full SHA for 832e9f1
src/app/Fake.DotNet.MSBuild/MSBuild.fs
@@ -886,7 +886,10 @@ module MSBuild =
886
fun (exePath: string) (callMsbuildExe: string -> string) ->
887
let getFromCall () =
888
try
889
- let result = callMsbuildExe "/version /nologo"
+ let result =
890
+ match Environment.isUnix with
891
+ | true -> callMsbuildExe "--version --nologo"
892
+ | false -> callMsbuildExe "/version /nologo"
893
894
let line =
895
if result.Contains "DOTNET_CLI_TELEMETRY_OPTOUT" then
0 commit comments