-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REGRESSION] FAKE 6.1.0 fails with dotnet preview versions #2803
Comments
Parsing out the underlying version would be something like in Fake.DotNet.Cli/DotNet.fs, line 73 to put
but when used to determine an SDK file path, then the correct action is to use the |
Having had time to reflect on this at leisure - Firstly, I was forgetting earlier that we also have release candidate builds, like last year's
Secondly, chasing up the call chain to the definition of The correct fix, therefore is to simply delete line 74, thus simplifying the match expression to match sdk.Property("version") with
| null -> None
| version ->
Some (version.Value.ToString()) or, more directly expressing intent, like sdk.Property("version")
|> Option.ofObj
|> Option.map _.Value.ToString() |
refs #2757 I think? (I don't know why the |
Try 6.1.1 |
That resolves the issue. Thank you! |
Description
Upgrading the AltCover build from v6.0.0 to v6.1.0, the first use of
Fake.DotNet.DotNet.exec
fails when parsing the version string inglobal.json
. The same is true for other APIs, likeDotNet.restore
Repro steps
DotNet.exec
Expected behavior
It just works, i.e. unchanged since v 6.0.0
Actual behavior
Exception thrown
Known workarounds
Revert to 6.0.0
Related information
The text was updated successfully, but these errors were encountered: