diff --git a/src/app/Fake.DotNet.Cli/DotNet.fs b/src/app/Fake.DotNet.Cli/DotNet.fs index 4224c5764d7..62e6a2c3eb2 100644 --- a/src/app/Fake.DotNet.Cli/DotNet.fs +++ b/src/app/Fake.DotNet.Cli/DotNet.fs @@ -69,10 +69,7 @@ module DotNet = match sdk.Property("version") with | null -> None - | version -> - let versionValue = version.Value.ToString() - let _ = Version.Parse(versionValue) - Some versionValue + | version -> Some(version.Value.ToString()) with exn -> failwithf "Could not parse `sdk.version` from global.json at '%s': %s" globalJson.FullName exn.Message