Skip to content

Commit 832e9f1

Browse files
authored
Merge pull request #2716 from FoothillSolutions/2709
Fix 2709.
2 parents 4b53a2d + 62135d9 commit 832e9f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/Fake.DotNet.MSBuild/MSBuild.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,10 @@ module MSBuild =
886886
fun (exePath: string) (callMsbuildExe: string -> string) ->
887887
let getFromCall () =
888888
try
889-
let result = callMsbuildExe "/version /nologo"
889+
let result =
890+
match Environment.isUnix with
891+
| true -> callMsbuildExe "--version --nologo"
892+
| false -> callMsbuildExe "/version /nologo"
890893

891894
let line =
892895
if result.Contains "DOTNET_CLI_TELEMETRY_OPTOUT" then

0 commit comments

Comments
 (0)