Skip to content
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

added: File.tryGetVersion #2379

Merged
merged 1 commit into from
Aug 25, 2019
Merged

added: File.tryGetVersion #2379

merged 1 commit into from
Aug 25, 2019

Conversation

SCullman
Copy link
Contributor

fixes #2378

At least if helps to avoid dealing with NullReferenceException

@matthid
Copy link
Member

matthid commented Aug 17, 2019

Additionally, we should change getVersion to return null instead of throwing or throwing a different exception?

@matthid
Copy link
Member

matthid commented Aug 17, 2019

By the way don't worry about the build right now I have broken it in the release/next branch and trying to fix it... last good one is probably 64d5c19 in case you want to build locally.

@matthid matthid added the waiting for author Some information or action was requested and it needs to be addressed. Or a response from author label Aug 17, 2019
@SCullman
Copy link
Contributor Author

I would tend to a different exception, e.g.NoVersionFoundException. If anyone run into this before, and handled this with try/catch, that script would still work.

matthid added a commit that referenced this pull request Aug 25, 2019
- add tests
- Change getVersion to not throw nullreferenceException, fixes #2378
@matthid matthid merged commit 6547bdc into fsprojects:release/next Aug 25, 2019
@SCullman SCullman deleted the fix_2378 branch August 26, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for author Some information or action was requested and it needs to be addressed. Or a response from author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File.getVersion fails if version is not set
2 participants