How to determine version or date/time stamp of currently used FSC.exe, FSI.exe and other F# tools in Visual Studio #12022
Replies: 4 comments
-
I think we would normally want this #2323? |
Beta Was this translation helpful? Give feedback.
-
@dsyme, that thread (and its related threads) suggest to somehow lock the github SHA in the metadata of the assemblies. While I think that is a good idea, it wouldn't fully resolve this issue:
The first is easy to solve, just add some more metadata. The second is a tad harder. I would think about a primitive (though not a keyword) which, when used, will return some info of the But to keep things easy, consider you'd have a primitive Even if we expose such member only during development, it would already be beneficial. It took me a week to find out that I wasn't compiling against the new Just a suggestion, perhaps there's an easier way or magic trick. |
Beta Was this translation helpful? Give feedback.
-
The File Version field from the details tab is the "official version number". The nightlies do not deliver an updated compiler. The CSC command displays the version number like this, with a detailed version number and the SHA. warning CS2008: No source files specified. We should do this for fscd fsi. |
Beta Was this translation helpful? Give feedback.
-
@KevinRansom, yes, that would be great, and thanks for the summary! But that would be only half way, as still, it would be beneficial to know "from code" what compiler was used (even if it were only to know that running the tests uses the compiler you intended the tests for). Compare, for instance, |
Beta Was this translation helpful? Give feedback.
-
More of a question than an issue, but I often find myself wondering what the current version is that I am using in Visual Studio. With multiple branches, nightlies vs RTM releases, multiple PR's often being switched/build all the time and one VS Preview installation, I wonder how I can check this. Thinking of:
I deliberately mean date here, as I believe version is not updated on each build. I wouldn't mind writing a little script that can be copy/pasted in FSI to query this info, just need to know where to find it by hand.
Showing the logo would perhaps get me closer, but
--nologo
is the default in VS and cannot be changed I believe.(edit) This is interesting (works for FSI, and gives a hint on whether the VSIX's installed, but doesn't tell you much about the FSC compiler used for building, which is taken from the SDK paths):
After doing a
VSIXInstaller.exe release\net40\bin\VisualFSharpOpenSource.vsix
, I saw the date changing, so that's good. But how to do the same forFSC.exe
? I checked internal compiler switches, but nothing yet.Beta Was this translation helpful? Give feedback.
All reactions