Add #version;; directive to F# Interactive#19332
Open
bbatsov wants to merge 1 commit intodotnet:mainfrom
Open
Conversation
Contributor
❗ Release notes required
|
db76027 to
4b4cfea
Compare
Member
|
Thank you 👍 . Two bonus ideas if doable and if you think they are good additions: The same F# binary can be configured (VS options, directory.props,..) to serve different F# Language version, maybe show that as well? The same for FSharp.Core version - often not clear where FSharp.Core comes from (from VS, from SDK, from project,...). From a perspective of a person who reads bugs reports, all of those make sense 👍 . |
Prints version, language version, FSharp.Core version, .NET runtime, and OS/architecture info on demand — useful for debugging and bug reporting when the startup banner has scrolled away. Closes dotnet#13307.
4b4cfea to
1ee5705
Compare
Contributor
Author
|
Done! I've added both the F# language version and FSharp.Core version to the output. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Users with multiple F#/SDK/VS installations often need to identify which FSI they're running. The startup banner shows the version, but it scrolls away quickly. This adds a
#version;;directive that prints version and environment info on demand — useful for debugging and bug reporting.Example output:
Fixes #13307
Checklist