Closed xperiandri closed 9 months ago
Welcome to the FAKE community! Thank you so much for creating your first issue and therefore improving the project!
Totally agree here - if there's no version
this function should return None
. Definitely send a PR! (He said, despite not being a maintainer)
Description
When
version
is absent inglobal.json
call fails at this line https://github.com/fsprojects/FAKE/blob/13e30330cae0597aed6154a95a06d21716b18de3/src/app/Fake.DotNet.Cli/DotNet.fs#L69Repro steps
global.json
without versionDotNet.restore id <path>
Expected behavior
No exception happens. More over current exception is not descriptive at all!
Actual behavior
NullReferenceException
Known workarounds
No
Related information
I'm ready to create a PR if you approve this behavior change