Skip to content

Commit

Permalink
Remove Version.Parse check from global.json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Numpsy committed Aug 13, 2024
1 parent 681f31a commit ac92200
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/Fake.DotNet.Cli/DotNet.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ac92200

Please sign in to comment.